code: def nested_compare(t, u):
      """
      Return whether nested structure of t1 and t2 matches.
      """
      if isinstance(t, (list, tuple)):
          if not isinstance(u, type(t)):
              return False
          if len(t) != len(u):
              return False
          for a, b in zip(t, u):
              if not nested_compare(a, b):
                  return False
          return True
  
      if isinstance(t, dict):
          if not isinstance(u, dict):
              return False
          if set(t.keys()) != set(u.keys()):
              return False
          for k in t:
              if not nested_compare(t[k], u[k]):
                  return False
          return True
  
      else:
          return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: nested_compare(t, u) and returns: True, True, True, False, False, False, False, False, False