docs: def list_distros(package_format=None):
      """List available distributions."""
      client = get_distros_api()
  
      # pylint: disable=fixme
      # TODO(ls): Add package format param on the server-side to filter distros
      # instead of doing it here.
      with catch_raise_api_exception():
          distros, _, headers = client.distros_list_with_http_info()
  
      ratelimits.maybe_rate_limit(client, headers)
  
      return [
          distro.to_dict()
          for distro in distros
          if not package_format or distro.format == package_format
      ]