def METHOD_NAME(limit):
    """Temporarily override test time limit (--max-test-time)
    Note: this is only useful when spanning multiple test events because
    the limit must be present at the _end_ of a test event to take
    effect. Therefore it will do nothing if used within the context of a
    single test. It also does not affect the time limit on the final
    teardown fixture (in which the patch is removed).
    """
    patch_obj = patch(f"{__name__}.PLUGIN_INSTANCE.max_test_time", limit)
    patch_obj.decorate_class = partial(apply_fixture_patch, patch_obj)
    return patch_obj