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 testFromDatasetIdOmitsCompression(self, compression):
      cluster = data_service_test_base.TestCluster(
          num_workers=1, data_transfer_protocol="grpc"
      )
      dataset = dataset_ops.Dataset.from_tensor_slices(
          list("abcdefghijklmnopqrstuvwxyz")
      )
  
      def to_upper(x):
          return script_ops.numpy_function(
              func=lambda x: x.decode("utf-8").upper(),
              inp=[x],
              Tout=dtypes.string,
          )
  
      dataset = dataset.map(
          to_upper, num_parallel_calls=dataset_ops.AUTOTUNE
      )
      dataset_id = data_service_ops.register_dataset(
          cluster.dispatcher.target,
          dataset=dataset,
          compression=compression,
      )
      dataset = data_service_ops.from_dataset_id(
          processing_mode=data_service_ops.ShardingPolicy.OFF,
          service=cluster.dispatcher.target,
          dataset_id=dataset_id,
          element_spec=dataset.element_spec,
      )
      self.assertDatasetProduces(
          dataset, list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
      )
  
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 6 for calling the DataServiceMetadataTest obj's underlying member method code with example usage: obj.testFromDatasetIdOmitsCompression(compression) and returns: script_ops