code: def compare_methods(
      methodname,
      args,
      vars="x",
      nloop=500,
      test=True,
      xs=xs,
      nmxs=nmxs,
      xl=xl,
      nmxl=nmxl,
  ):
      print("-" * 50)
      print("%s on small arrays" % methodname)
      data, ver = "nm%ss" % vars, "numpy.ma"
      timer(
          "%(data)s.%(methodname)s(%(args)s)" % locals(),
          v=ver,
          nloop=nloop,
      )
  
      print("%s on large arrays" % methodname)
      data, ver = "nm%sl" % vars, "numpy.ma"
      timer(
          "%(data)s.%(methodname)s(%(args)s)" % locals(),
          v=ver,
          nloop=nloop,
      )
      return
  
imports: from __future__ import division, print_function
  import timeit
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: compare_methods(methodname, args, vars, nloop, test, xs, nmxs, xl, nmxl) without return types