code: def _members(self):
          
          return {
              key: value
              for key, value in self.__dict__.items()
              # NB: ignore internal SQLAlchemy state and nested relationships
              if not key.startswith("_") and not isinstance(value, Model)
          }
docs: Return a dict of non-private members.