code: def run_benchmark_operator(
      name,
      size=(128, 128),
      additional_inputs={},
      dtype="float32",
      run_backward=False,
      ctx=mx.cpu(),
      warmup=10,
      runs=50,
      profiler="native",
  ):
      arg_list = {
          mx.nd: PARAMS_OF_TYPE_NDARRAY,
          mx.np: PARAMS_OF_TYPE_NP_ARRAY,
          mx.npx: PARAMS_OF_TYPE_NP_ARRAY,
      }
      modules = [mx.nd, mx.np, mx.npx]
      responses = []
      for module in modules:
          name = adjust_op_name(module, name)
          if hasattr(module, name):
              function = getattr(module, name)
              args = inspect.signature(function).parameters.keys()
              inputs = {}
              for arg in args:
                  if arg in additional_inputs.keys():
                      inputs.update({arg: additional_inputs[arg]})
                  elif arg in arg_list[module]:
                      inputs.update({arg: size})
              res = run_performance_test(
                  function,
                  run_backward=run_backward,
                  dtype=dtype,
                  ctx=ctx,
                  inputs=[inputs],
                  warmup=warmup,
                  runs=runs,
                  profiler=profiler,
              )
              responses.append(res)
          else:
              responses.append(
                  str(module.__name__)
                  + " does not have operator "
                  + name
              )
      for i in range(len(modules)):
          print(modules[i].__name__)
          print(responses[i])
  
file_path: mxnet/benchmark/opperf/utils/benchmark_utils.py
imports: import logging
  import inspect
  import mxnet
  from mxnet import nd
  from mxnet import np
  from .ndarray_utils import get_mx_ndarray, nd_forward_and_profile, nd_forward_backward_and_profile
  from .common_utils import merge_map_list
  from .op_registry_utils import prepare_op_inputs
  from benchmark.opperf.rules.default_params import PARAMS_OF_TYPE_NDARRAY, PARAMS_OF_TYPE_NP_ARRAY
  from .profiler_utils import cpp_profile, python_profile
label_desc: Use image node_id 7 for calling a global function with example usage: run_benchmark_operator(name, size, additional_inputs, dtype, run_backward, ctx, warmup, runs, profiler) without return types