docstr: Evaluate an exec-compatible string in a specific
  environment.
  
  The string is compiled before profiling begins.
docstr_tok: ["Evaluate","an","exec-compatible","string","in","a","specific","environment",".","The","string","is","compiled","before","profiling","begins","."]
code: def runctx(self, cmd, globals, locals):
      """Evaluate an exec-compatible string in a specific
      environment.
  
      The string is compiled before profiling begins.
      """
      code = compile(cmd, "<string>", "exec")
      self._prof.runcode(code, globals, locals)
      return self
  
file_path: catboost/contrib/tools/python/src/Lib/hotshot/__init__.py
imports: import _hotshot
  from _hotshot import ProfilerError
  from warnings import warnpy3k
label_desc: Use image node_id 8 for calling the Profile obj's underlying member method code with example usage: obj.runctx(cmd, globals, locals) and returns: self