docs: def repos(ctx, opts, owner, page, page_size):
      """
      List repositories for a namespace (owner).
  
      OWNER: Specify the OWNER namespace (i.e. user or org) to list the
      repositories for that namespace.
  
      If OWNER isn't specified it'll default to the currently authenticated user
      (if any). If you're unauthenticated, no results will be returned.
      """
      # Use stderr for messages if the output is something else (e.g.  # JSON)
      use_stderr = opts.output != "pretty"
  
      click.echo("Getting list of repositories ... ", nl=False, err=use_stderr)
  
      context_msg = "Failed to get list of repositories!"
      with handle_api_exceptions(ctx, opts=opts, context_msg=context_msg):
          with maybe_spinner(opts):
              repos_, page_info = list_repos(owner=owner, page=page, page_size=page_size)
  
      click.secho("OK", fg="green", err=use_stderr)
  
      if utils.maybe_print_as_json(opts, repos_, page_info):
          return
  
      headers = [
          "Name",
          "Type",
          "Packages",
          "Groups",
          "Downloads",
          "Size",
          "Owner / Repository (Identifier)",
      ]
  
      rows = []
      for repo in sorted(repos_, key=itemgetter("namespace", "slug")):
          rows.append(
              [
                  click.style(repo["name"], fg="cyan"),
                  click.style(repo["repository_type_str"], fg="yellow"),
                  click.style(six.text_type(repo["package_count"]), fg="blue"),
                  click.style(six.text_type(repo["package_group_count"]), fg="blue"),
                  click.style(six.text_type(repo["num_downloads"]), fg="blue"),
                  click.style(six.text_type(repo["size_str"]), fg="blue"),
                  "%(owner_slug)s/%(slug)s"
                  % {
                      "owner_slug": click.style(repo["namespace"], fg="magenta"),
                      "slug": click.style(repo["slug"], fg="green"),
                  },
              ]
          )
  
      if repos_:
          click.echo()
          utils.pretty_print_table(headers, rows)
  
      click.echo()
  
      num_results = len(repos_)
      list_suffix = "repositor%s visible" % ("ies" if num_results != 1 else "y")
      utils.pretty_print_list_info(
          num_results=num_results, page_info=page_info, suffix=list_suffix
      )