code: def infer_import_from(self, context=None, asname=True):
      
      name = context.lookupname
      if name is None:
          raise exceptions.InferenceError(node=self, context=context)
      if asname:
          name = self.real_name(name)
  
      try:
          module = self.do_import_module()
      except exceptions.AstroidBuildingError as exc:
          raise exceptions.InferenceError(node=self, context=context) from exc
  
      try:
          context = contextmod.copy_context(context)
          context.lookupname = name
          stmts = module.getattr(name, ignore_locals=module is self.root())
          return bases._infer_stmts(stmts, context)
      except exceptions.AttributeInferenceError as error:
          raise exceptions.InferenceError(
              error.message, target=self, attribute=name, context=context
          ) from error
docs: infer a ImportFrom node: return the imported module/object