def _retrieve_bucket_name(bucket_url_or_name: str) -> str:
  """Returns bucket name retrieved from URL.

  Args:
    bucket_url_or_name: The name or url of the storage bucket.
  """
  return bucket_url_or_name.split('/')[-1]