docs: def transform_api_header_authorization(param, value):
      """Transform a username:password value into a base64 string."""
      try:
          username, password = value.split(":", 1)
      except ValueError:
          raise click.BadParameter(
              "Authorization header needs to be Authorization=username:password",
              param=param,
          )
  
      value = "%s:%s" % (username.strip(), password)
      value = base64.b64encode(bytes(value.encode()))
      return "Basic %s" % value.decode("utf-8")