class_docstr: Tests propagating data service metadata through tf.data service.
class_docstr_tok: ["Tests","propagating","data","service","metadata","through","tf.data","service","."]
code: def testFromDatasetIdDoesntRequireElementSpec(self):
      cluster = data_service_test_base.TestCluster(
          num_workers=1,
          work_dir=data_service_test_base.NO_WORK_DIR,
          fault_tolerant_mode=False,
          data_transfer_protocol="grpc",
      )
      num_elements = 10
      dataset = dataset_ops.Dataset.range(num_elements)
  
      dataset_id = data_service_ops.register_dataset(
          cluster.dispatcher_address(), dataset
      )
      dataset = data_service_ops.from_dataset_id(
          processing_mode=data_service_ops.ShardingPolicy.OFF,
          service=cluster.dispatcher_address(),
          dataset_id=dataset_id,
      )
      self.assertDatasetProduces(dataset, list(range(num_elements)))
  
imports: import functools
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.kernel_tests.service import test_base
  from tensorflow.python.data.experimental.ops import data_service_ops
  from tensorflow.python.data.experimental.ops import distribute
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import script_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the DataServiceMetadataTest obj's underlying member method code with example usage: obj.testFromDatasetIdDoesntRequireElementSpec() without return types