def METHOD_NAME(*args):
  def decorator(func):
    for test_case in args[0]:
      @benchmark.register(name=f"{func.__name__}_{test_case['name']}")
      @functools.wraps(func)
      def wrapper(state, test_case=test_case):
        return func(state, **test_case)
    return wrapper
  return decorator