def url(base_url: str, region: str) -> str:
  """Returns a regionalized URL based on the default and the given region."""
  if region != "us":
    base_url = base_url.replace("https://", f"https://{region}-")
  return base_url