def METHOD_NAME(
    file_path: str, content_disposition: str, expiration: int = 3600
):
    """Generate S3 URL."""
    s3_class = get_storage_class("storages.backends.s3boto3.S3Boto3Storage")()
    bucket_name = s3_class.bucket.name
    s3_config = Config(
        signature_version=getattr(settings, "AWS_S3_SIGNATURE_VERSION", "s3v4"),
        region_name=getattr(settings, "AWS_S3_REGION_NAME", ""),
    )
    s3_client = boto3.client("s3", config=s3_config)
    # Generate a presigned URL for the S3 object
    return s3_client.generate_presigned_url(
        "get_object",
        Params={
            "Bucket": bucket_name,
            "Key": file_path,
            "ResponseContentDisposition": content_disposition,
            "ResponseContentType": "application/octet-stream",
        },
        ExpiresIn=expiration,
    )