def METHOD_NAME(func):
    if user_requested_network_access:
        # Run the setup code, but don't record it
        with monkeypatch.context() as m:
            m.setattr(vcr_state, "recording", RecordingMode.DISABLE)
            return func()