code: def _check_parser(parser):
      """Make sure a valid parser is passed.
  
      Parameters
      ----------
      parser : str
  
      Raises
      ------
      KeyError
        * If an invalid parser is passed
      """
      from pandas.core.computation.expr import _parsers
  
      if parser not in _parsers:
          raise KeyError(
              "Invalid parser {parser!r} passed, valid parsers are"
              " {valid}".format(parser=parser, valid=_parsers.keys())
          )
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/computation/eval.py
imports: import tokenize
  import warnings
  from pandas.compat import string_types
  from pandas.util._validators import validate_bool_kwarg
  from pandas.core.computation.engines import _engines
  from pandas.core.computation.scope import _ensure_scope
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 2 for calling a global function with example usage: _check_parser(parser) without return types