code: def map_structure_up_to(
      shallow_structure, func, *structures, **kwargs
  ):
      return map_structure_with_tuple_paths_up_to(
          shallow_structure,
          lambda _, *args: func(*args),  # Discards path.
          *structures,
          **kwargs,
      )
  
imports: import collections
  from collections import abc
  import types
  import tree
label_desc: Use image node_id 10 for calling a global function with example usage: map_structure_up_to(shallow_structure, func) and returns: map_structure_with_tuple_paths_up_to