code: def set_default_ax(func, *args, **kwargs):
      params = util.map_parameters_in_fn_call(args, kwargs, func)
  
      if "ax" not in params:
          raise Exception("ax is not a parameter in {}".format(func))
  
      if params["ax"] is None:
          params["ax"] = plt.gca()
  
      return func(**params)
  
imports: from decorator import decorator
  import matplotlib.pyplot
  from sklearn_evaluation import util
label_desc: Use image node_id 1 for calling a global function with example usage: set_default_ax(func) and returns: func