code: def testNestMapStructureWithPaths(
      self, structure, expected, expand_composites=True
  ):
      def func1(path, x):
          return "%s:%s" % (path, x)
  
      result = nest.map_structure_with_paths(
          func1, structure, expand_composites=expand_composites
      )
      self.assertEqual(result, expected)
  
      # Use the same test cases for map_structure_with_tuple_paths.
      def func2(tuple_path, x):
          return "%s:%s" % ("/".join(str(v) for v in tuple_path), x)
  
      result = nest.map_structure_with_tuple_paths(
          func2, structure, expand_composites=expand_composites
      )
      self.assertEqual(result, expected)
  
imports: import gc
  import sys
  import weakref
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import nest
label_desc: Use image node_id 10 for calling the CompositeTensorTest obj's underlying member method code with example usage: obj.testNestMapStructureWithPaths(structure, expected, expand_composites) and returns: unknown, unknown