code: def benchmark_method(f):
      "decorator to turn f into a factory of benchmarks"
      @wraps(f)
      def inner(name, *args, **kwargs):
          return Benchmark(name, f, args, kwargs)
      return innef benchmark_method(f):
      "decorator to turn f into a factory of benchmarks"
      @wraps(f)
      def inner(name, *args, **kwargs):
          return Benchmark(name, f, args, kwargs)
      return inner
docs: decorator to turn f into a factory of benchmarks