code: def pack_structs_like(template, *structures):
      """Converts a tuple of structs like `template` to a structure of tuples."""
      if not structures:
          return nest.map_structure(lambda x: (), template)
      return nest.map_structure_up_to(
          template, (lambda *args: args), *structures, check_types=False
      )
  
imports: import collections
  import functools
  import sys
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.bijectors import ldj_ratio
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 for calling a global function with example usage: pack_structs_like(template) and returns: nest, nest