def METHOD_NAME(file_path: str, sampling_rate: int = 16000, n_fft: int = 400):
    """Load a spectrogram from an image or audio file.
    Args:
        file_path: The file to load.
        sampling_rate: The sampling rate to resample to if loading from an audio file.
        n_fft: The size of the FFT to use when creating a spectrogram from an audio file.
    """
    loaders = copy.copy(_spectrogram_loaders)
    loaders[AUDIO_EXTENSIONS] = partial(loaders[AUDIO_EXTENSIONS], sampling_rate=sampling_rate, n_fft=n_fft)
    return load(file_path, loaders)