code: def testNestedStructure(self, components, expected_shapes):
      dataset = dataset_ops.Dataset.from_tensors(components)
      dataset = dataset.map(lambda x, y, z: ((x, z), (y[0], y[1])))
  
      dataset = dataset.flat_map(
          lambda x, y: dataset_ops.Dataset.from_tensors(
              ((x[0], x[1]), (y[0], y[1]))
          )
      ).batch(32)
  
      get_next = self.getNext(dataset)
      (w, x), (y, z) = get_next()
      self.assertEqual(dtypes.int64, w.dtype)
      self.assertEqual(dtypes.int64, x.dtype)
      self.assertEqual(dtypes.float64, y.dtype)
      self.assertEqual(dtypes.float64, z.dtype)
      self.assertEqual(
          expected_shapes,
          [
              w.shape.as_list(),
              x.shape.as_list(),
              y.shape.as_list(),
              z.shape.as_list(),
          ],
      )
  
      get_next = self.getNext(dataset)
      (w, x), (y, z) = get_next()
      self.assertEqual(dtypes.int64, w.dtype)
      self.assertEqual(dtypes.int64, x.dtype)
      self.assertEqual(dtypes.float64, y.dtype)
      self.assertEqual(dtypes.float64, z.dtype)
      self.assertEqual(
          expected_shapes,
          [
              w.shape.as_list(),
              x.shape.as_list(),
              y.shape.as_list(),
              z.shape.as_list(),
          ],
      )
  
imports: import collections
  import dataclasses
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.data.experimental.ops import random_access
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the FromTensorsTest obj's underlying member method code with example usage: obj.testNestedStructure(components, expected_shapes) without return types