code: def testFromTensorSlicesWithDict(self):
      components = {"foo": [1, 2, 3], "bar": [[4.0], [5.0], [6.0]]}
      dataset = dataset_ops.Dataset.from_tensor_slices(components)
      get_next = self.getNext(dataset)
  
      self.assertEqual(
          dtypes.int32,
          dataset_ops.get_legacy_output_types(dataset)["foo"],
      )
      self.assertEqual(
          dtypes.float32,
          dataset_ops.get_legacy_output_types(dataset)["bar"],
      )
      self.assertEqual(
          (), dataset_ops.get_legacy_output_shapes(dataset)["foo"]
      )
      self.assertEqual(
          (1,), dataset_ops.get_legacy_output_shapes(dataset)["bar"]
      )
  
      for i in range(3):
          results = self.evaluate(get_next())
          self.assertEqual(components["foo"][i], results["foo"])
          self.assertEqual(components["bar"][i], results["bar"])
      with self.assertRaises(errors.OutOfRangeError):
          self.evaluate(get_next())
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  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.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the FromTensorSlicesTest obj's underlying member method code with example usage: obj.testFromTensorSlicesWithDict() without return types