def METHOD_NAME(testdir, monkeypatch):
    """Fixture which provides a coveragerc and a test to call module.func."""
    testdir.makefile(ext='', coveragerc="""
        [run]
        branch=True
    """)
    testdir.makepyfile(test_module="""
        from module import func
        def test_module():
            func()
    """)
    # Check if coverage plugin is available
    res = testdir.runpytest('--version', '--version')
    assert res.ret == 0
    output = res.stderr.str()
    if not output:
        # pytest >= 7.0: https://github.com/pytest-dev/pytest/pull/8247
        output = res.stdout.str()
    assert 'This is pytest version' in output
    if 'pytest-cov' not in output:
        pytest.skip("cov plugin not available")
    return CovtestHelper(testdir, monkeypatch)