def pytest_funcarg__generate_golden_data(request):
  """py.test magic for passing the --generate_golden_data flag=/path/to/golden/data to the test."""
  return request.config.option.generate_golden_data