code: def matchmark(colitem, markexpr):
      """Tries to match on any marker names, attached to the given colitem."""
      try:
          return eval(markexpr, {}, MarkMapping.from_item(colitem))
      except SyntaxError as e:
          raise SyntaxError(
              str(e) + "\nMarker expression must be valid Python!"
          )
  
file_path: catboost/contrib/python/pytest/py2/_pytest/mark/legacy.py
imports: import keyword
  import attr
  from _pytest.config import UsageError
label_desc: Use image node_id 1 for calling a global function with example usage: matchmark(colitem, markexpr) and returns: eval