code: def infer_import(self, context=None, asname=True):
      
      name = context.lookupname
      if name is None:
          raise exceptions.InferenceError(node=self, context=context)
  
      try:
          if asname:
              yield self.do_import_module(self.real_name(name))
          else:
              yield self.do_import_module(name)
      except exceptions.AstroidBuildingError as exc:
          raise exceptions.InferenceError(node=self, context=context) from exc
docs: infer an Import node: return the imported module/object