def METHOD_NAME(uri):
    """Parse an GCS URI, returning (bucket, path)"""
    parsed = urllib.parse.urlparse(uri)
    if parsed.scheme != "gs":
        raise Exception(f"Not a GCS URI: {uri}")
    path = parsed.path
    if path.startswith("/"):
        path = path[1:]
    return parsed.netloc, path