code: def wrapsafe(f):
      def g(*args):
          try:
              return f(*args)
          except (ArithmeticError, ValueError):
              return 0
  
      return g
  
imports: from ..libmp.backend import xrange
  from .calculus import defun
label_desc: Use image node_id 9 for calling a global function with example usage: wrapsafe(f) and returns: g, f, int