code: def test_simple_match():
      g = compile("hello|world")
  
      m = g.match("hello")
      assert isinstance(m, Match)
  
      m = g.match("world")
      assert isinstance(m, Match)
  
      m = g.match("somethingelse")
      assert m is None
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_regular_languages.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.completion import CompleteEvent, Completer, Completion
  from prompt_toolkit.contrib.regular_languages import compile
  from prompt_toolkit.contrib.regular_languages.compiler import Match, Variables
  from prompt_toolkit.contrib.regular_languages.completion import GrammarCompleter
  from prompt_toolkit.document import Document
label_desc: Use image node_id 1 for calling a global function with example usage: test_simple_match() without return types