code: def testWithTuplePaths(self):
      def g(path, _):
          return path
          yield  # pylint: disable=unreachable
  
      a = {"y": 2.0, "x": 3.0, "z": 2.0}
      _, rvals = _get_yielded_and_returned_values(
          nest_util.map_structure_coroutine(
              g, a, _with_tuple_paths=True
          )
      )
      self.assertAllEqualNested(
          rvals,
          nest.map_structure_with_tuple_paths(lambda path, a: path, a),
      )
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import deterministic
  from tensorflow_probability.python.distributions import half_cauchy
  from tensorflow_probability.python.distributions import joint_distribution_auto_batched
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow.python.util import nest
label_desc: Use image node_id 5 for calling the MapStructureCoroutineTest obj's underlying member method code with example usage: obj.testWithTuplePaths() and returns: path