def infer_from(self, context=None, asname=True):
 name = context.lookupname
 if (name is None):
  raise InferenceError()
 if asname:
  name = self.real_name(name)
 module = self.do_import_module()
 try:
  context = copy_context(context)
  context.lookupname = name
  return _infer_stmts(module.getattr(name, ignore_locals=(module is self.root())), context)
 except NotFoundError:
  raise InferenceError(name)

def infer_from ( self , context = None , asname = True ) : name = context . lookupname if ( name is None ) : raise InferenceError ( ) if asname : name = self . real_name ( name ) module = self . do_import_module ( ) try : context = copy_context ( context ) context . lookupname = name return _infer_stmts ( module . getattr ( name , ignore_locals = ( module is self . root ( ) ) ) , context ) except NotFoundError : raise InferenceError ( name )
infer a from nodes: return the imported module/object .