code: def list_repos(self, batch_size=None, iterate=False):
          
          it = PaginatingResponse(self, '_base_request',
                                  '_catalog', 'repositories',
                                  params={'n': batch_size})
          return it if iterate else list(it)
docs: List all repositories in the registry.
  
          :param batch_size: Number of repository names to ask the server for at a time.
          :type batch_size: int
  
          :param iterate: Whether to return iterator over the names or a list of all the names.
          :type iterate: bool
  
          :rtype: list or iterator of strings
          :returns: Repository names.