docstr: Lookup name in a namespace spanning sys.modules and __main.dict__.
docstr_tok: ["Lookup","name","in","a","namespace","spanning","sys.modules","and","__main.dict__","."]
code: def get_entity(self, name):
      "Lookup name in a namespace spanning sys.modules and __main.dict__."
      return eval(name, {**sys.modules, **__main__.__dict__})
  
file_path: cpython/Lib/idlelib/autocomplete.py
imports: import __main__
  import keyword
  import os
  import string
  import sys
  from idlelib import autocomplete_w
  from idlelib.config import idleConf
  from idlelib.hyperparser import HyperParser
label_desc: Use image node_id 11 for calling the AutoComplete obj's underlying member method code with example usage: obj.get_entity(name) and returns: eval