def split_uri(s3_uri):
    """Split an s3 uri into the bucket and object name

    :param s3_uri: string
    """
    if not s3_uri.startswith("s3://"):
        # This is a local path, indicate using None
        raise ValueError(f"failed to parse s3 uri: {s3_uri}")
    bucket, key = s3_uri.split("s3://")[1].split("/", 1)
    return bucket, key