docstr: Profile an exec-compatible string in the script
  environment.
  
  The globals from the __main__ module are used as both the
  globals and locals for the script.
docstr_tok: ["Profile","an","exec-compatible","string","in","the","script","environment",".","The","globals","from","the","__main__","module","are","used","as","both","the","globals","and","locals","for","the","script","."]
code: def run(self, cmd):
      """Profile an exec-compatible string in the script
      environment.
  
      The globals from the __main__ module are used as both the
      globals and locals for the script.
      """
      import __main__
  
      dict = __main__.__dict__
      return self.runctx(cmd, dict, dict)
  
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 7 for calling the Profile obj's underlying member method code with example usage: obj.run(cmd) and returns: self