def get_bucket_and_key(s3_path):
    """Get the bucket name and key from the given path.
    Args:
        s3_path(str): Input S3 path
    """
    s3_path = s3_path.replace('s3://', '')
    s3_path = s3_path.replace('S3://', '') #Both cases
    bucket, key = s3_path.split('/', 1)
    return bucket, key