code: def map(f, n):
      if isinstance(n, tuple) or isinstance(n, list):
          return n.__class__(map(f, sn) for sn in n)
      elif isinstance(n, dict):
          return {k: map(f, v) for k, v in n.items()}
      else:
          return f(n)
  
label_desc: Use image node_id 1 for calling a global function with example usage: map(f, n) and returns: n, unknown, f