def METHOD_NAME(self, mock_pyodide_module, mock_js_module):
    """Add the mock Pyodide module to `sys.modules` and import our transport."""
    # Use patch so we don't clutter up the `sys.modules` namespace.
    patch_dict = (
        ("pyodide", mock_pyodide_module),
        ("pyodide.http", mock_pyodide_module.http),
        ("js", mock_js_module),
    )
    with mock.patch.dict(sys.modules, patch_dict):
        import azure.core.experimental.METHOD_NAME
        yield azure.core.experimental.METHOD_NAME