code: def testNonSequenceNestedStructure(self):
      components = np.array([1, 2, 3], dtype=np.int64)
  
      dataset = dataset_ops.Dataset.from_tensors(components)
      self.assertEqual(
          dtypes.int64, dataset_ops.get_legacy_output_types(dataset)
      )
      self.assertEqual(
          [3], dataset_ops.get_legacy_output_shapes(dataset)
      )
  
      dataset = dataset.filter(
          lambda x: math_ops.reduce_all(math_ops.equal(x, components))
      )
      self.assertEqual(
          dtypes.int64, dataset_ops.get_legacy_output_types(dataset)
      )
      self.assertEqual(
          [3], dataset_ops.get_legacy_output_shapes(dataset)
      )
  
      dataset = dataset.map(lambda x: array_ops_stack.stack([x, x]))
      self.assertEqual(
          dtypes.int64, dataset_ops.get_legacy_output_types(dataset)
      )
      self.assertEqual(
          [2, 3], dataset_ops.get_legacy_output_shapes(dataset)
      )
  
      dataset = dataset.flat_map(
          lambda x: dataset_ops.Dataset.from_tensor_slices(x)
      )
      self.assertEqual(
          dtypes.int64, dataset_ops.get_legacy_output_types(dataset)
      )
      self.assertEqual(
          [3], dataset_ops.get_legacy_output_shapes(dataset)
      )
  
      get_next = self.getNext(dataset)
      self.assertEqual(dtypes.int64, get_next().dtype)
      self.assertEqual([3], get_next().shape)
  
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 13 for calling the FromTensorsTest obj's underlying member method code with example usage: obj.testNonSequenceNestedStructure() without return types