def get_s3_model_absolute_cache_path(location: S3Location, download_dir: Optional[str] = None) -> str:
    """Returns the absolute path of an s3 model if it were downloaded.

        Args:
            location: Bucket and key of model file to be downloaded

        Returns:
            The absolute path of an s3 model if it were downloaded.
    """

    cache_dir = os.path.expanduser(download_dir if download_dir is not None else ModelCache.clip_cache_path)
    return os.path.join(cache_dir, get_s3_model_cache_filename(location))
Returns the absolute path of an s3 model if it were downloaded.

        Args:
            location: Bucket and key of model file to be downloaded

        Returns:
            The absolute path of an s3 model if it were downloaded.
    
src/marqo/inference/model_download/download_model_from_s3.py