code: def compare_functions_2v(
      func,
      nloop=500,
      test=True,
      xs=xs,
      nmxs=nmxs,
      ys=ys,
      nmys=nmys,
      xl=xl,
      nmxl=nmxl,
      yl=yl,
      nmyl=nmyl,
  ):
      funcname = func.__name__
      print("-" * 50)
      print("%s on small arrays" % funcname)
      module, data = "numpy.ma", "nmxs,nmys"
      timer(
          "%(module)s.%(funcname)s(%(data)s)" % locals(),
          v="%11s" % module,
          nloop=nloop,
      )
  
      print("%s on large arrays" % funcname)
      module, data = "numpy.ma", "nmxl,nmyl"
      timer(
          "%(module)s.%(funcname)s(%(data)s)" % locals(),
          v="%11s" % module,
          nloop=nloop,
      )
      return
  
imports: from __future__ import division, print_function
  import timeit
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: compare_functions_2v(func, nloop, test, xs, nmxs, ys, nmys, xl, nmxl, yl, nmyl) without return types