code: def server_info(self, session=None):
          
          return self.admin.command("buildinfo",
                                    read_preference=ReadPreference.PRIMARY,
                                    session=session)
docs: Get information about the MongoDB server we're connected to.
  
          :Parameters:
            - `session` (optional): a
              :class:`~pymongo.client_session.ClientSession`.
  
          .. versionchanged:: 3.6
             Added ``session`` parameter.