def METHOD_NAME(selenium, httpserver):
    httpserver.expect_oneshot_request("/test_pyfetch_headers").respond_with_data(
        b"HELLO",
        content_type="text/plain",
        headers={
            "Access-Control-Allow-Origin": "*",
            "Cache-Control": "max-age=300",
            "Content-Type": "text/plain",
        },
    )
    request_url = httpserver.url_for("/test_pyfetch_headers")
    selenium.run_async(
        f"""
        import pyodide.http
        response = await pyodide.http.pyfetch('{request_url}')
        headers = response.headers
        assert headers["cache-control"] == "max-age=300"
        assert headers["content-type"] == "text/plain"
        """
    )