def METHOD_NAME(self, available_backends, expected_backend):
    f = io.BytesIO()
    format = "wav"
    buffer_size = 8192
    with patch("torchaudio._backend.utils.get_available_backends", return_value=available_backends), patch(
        f"torchaudio._backend.utils.{expected_backend.__name__}.load"
    ) as mock_load:
        get_load_func()(f, format=format, buffer_size=buffer_size)
        mock_load.assert_called_once_with(f, 0, -1, True, True, format, buffer_size)