code: def h2o_H2OFrame_countmatches():
      """
      Python API test: h2o.frame.H2OFrame.countmatches(pattern)
  
      Copied from pyunit_countmatches.py
      """
      python_lists = [
          ["what", "is"],
          ["going", "on"],
          ["When", "are"],
          ["MeetingMeetingon", "gone"],
      ]
      h2oframe = h2o.H2OFrame(python_obj=python_lists)
      matches = h2oframe.countmatches(["Wh", "ing", "on"])
      assert_is_type(matches, H2OFrame)
      assert (
          matches.shape == h2oframe.shape
      ), "h2o.H2OFrame.countmatches() command is not working."
      assert (
          matches.any_na_rm()
      ), "h2o.H2OFrame.countmatches() command is not working."
      nomatches = h2oframe.countmatches(["rain", "pluck"])
      assert not (
          nomatches.any_na_rm()
      ), "h2o.H2OFrame.countmatches() command is not working."
  
imports: import sys
  from tests import pyunit_utils
  import h2o
  from h2o.utils.typechecks import assert_is_type
  from h2o.frame import H2OFrame
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_countmatches() without return types