code: def flatten_with_joined_paths(structure, expand_composites=False):
      flattened = flatten_with_tuple_paths(
          structure, expand_composites=expand_composites
      )
  
      def stringify_and_join(path_elements):
          return "/".join(
              str(path_element) for path_element in path_elements
          )
  
      return [
          (stringify_and_join(path), value)
          for (path, value) in flattened
      ]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import numbers
  from typing import Optional, Text
  from absl import logging
  import numpy
  from six.moves import zip
  import tensorflow
  from tf_agents.typing import types
  from tf_agents.utils import composite
  import wrapt
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling a global function with example usage: flatten_with_joined_paths(structure, expand_composites) and returns: unknown, str