def infer_import(self, context=None, asname=True):
 name = context.lookupname
 if (name is None):
  raise InferenceError()
 if asname:
  (yield self.do_import_module(self.real_name(name)))
 else:
  (yield self.do_import_module(name))

def infer_import ( self , context = None , asname = True ) : name = context . lookupname if ( name is None ) : raise InferenceError ( ) if asname : ( yield self . do_import_module ( self . real_name ( name ) ) ) else : ( yield self . do_import_module ( name ) )
infer an import node: return the imported module/object .