def wrap_function_to_error_out_if_called_directly(function, fixture_marker):
message = FIXTURE_FUNCTION_CALL.format(<EOL>name=fixture_marker.name or function.__name__<EOL>)<EOL>@six.wraps(function)<EOL>def result(*args, **kwargs):<EOL><INDENT>fail(message, pytrace=False)<EOL><DEDENT>result.__pytest_wrapped__ = _PytestWrapper(function)<EOL>return result<EOL>
Wrap the given fixture function so we can raise an error about it being called directly,
    instead of used as an argument in a test function.