code: def list_indexes(self, session=None):
          
          cursor_class = create_class_with_framework(
              AgnosticLatentCommandCursor, self._framework, self.__module__)
  
          # Latent cursor that will send initial command on first "async for".
          return cursor_class(self, self._async_list_indexes, session=session)
docs: Get a cursor over the index documents for this collection. ::
  
            async def print_indexes():
                async for index in db.test.list_indexes():
                    print(index)
  
          If the only index is the default index on ``_id``, this might print::
  
              SON([('v', 1), ('key', SON([('_id', 1)])), ('name', '_id_'), ('ns', 'test.test')])