def SplitStoragePath(path: str) -> Tuple[str, str]:
  """Split a path to bucket name and object URI.

  Args:
    path (str): File path to a resource in GCS.
        Ex: gs://bucket/folder/obj

  Returns:
    Tuple[str, str]: Bucket name. Object URI.
  """

  _, _, full_path = path.partition('//')
  bucket, _, object_uri = full_path.partition('/')
  return bucket, object_uri
Split a path to bucket name and object URI.

Args:
path (str): File path to a resource in GCS.
Ex: gs://bucket/folder/obj

Returns:
Tuple[str, str]: Bucket name. Object URI.
libcloudforensics/providers/utils/storage_utils.py