code: def igetattr(self, name, context=None):
          
          try:
              return bases._infer_stmts(self.getattr(name, context), context, frame=self)
          except exceptions.AttributeInferenceError as error:
              raise exceptions.InferenceError(
                  error.message, target=self, attribute=name, context=context
              ) from error
docs: Inferred getattr, which returns an iterator of inferred statements.