def METHOD_NAME():
    with (
        patch(
            "providers.provider_api_scripts.jamendo.rewrite_redirected_url"
        ) as class_mock,
        patch("common.urls.rewrite_redirected_url") as module_mock,
    ):
        # Prevent calling out to Jamendo & speed up tests
        # We need to patch it in both namespaces because `rewrite_redirected_url` is used
        # directly in the JamendoDataIngester, as well as by `get_license_info`.
        class_mock.side_effect = lambda x: x
        module_mock.side_effect = lambda x: x
        yield