code: def test_enqueue_dense_sparse_ragged(self):
      strategy, mid_level_api, _ = self._create_strategy_and_mid_level(
          "sgd"
      )
  
      dataset = self._create_high_dimensional_dense_dataset(strategy)
      dense_iter = iter(
          strategy.experimental_distribute_dataset(
              dataset,
              options=distribute_lib.InputOptions(
                  experimental_fetch_to_device=False
              ),
          )
      )
  
      sparse = self._create_high_dimensional_sparse_dataset(strategy)
      sparse_iter = iter(
          strategy.experimental_distribute_dataset(
              sparse,
              options=distribute_lib.InputOptions(
                  experimental_fetch_to_device=False
              ),
          )
      )
  
      ragged = self._create_high_dimensional_ragged_dataset(strategy)
      ragged_iter = iter(
          strategy.experimental_distribute_dataset(
              ragged,
              options=distribute_lib.InputOptions(
                  experimental_fetch_to_device=False
              ),
          )
      )
  
      mid_level_api.build(
          [
              TensorShape([self.batch_size, self.data_batch_size, 1]),
              TensorShape([self.batch_size, self.data_batch_size, 2]),
              TensorShape([self.batch_size, self.data_batch_size, 3]),
          ]
      )
  
      @def_function.function
      def test_fn():
          def step():
              return mid_level_api.dequeue()
  
          features = (
              next(dense_iter)[0],
              next(sparse_iter)[1],
              next(ragged_iter)[2],
          )
          mid_level_api.enqueue(features, training=False)
          return strategy.run(step)
  
      test_fn()
  
file_path: tensorflow-upstream/tensorflow/python/tpu/tests/tpu_embedding_v2_hd_valid_input_test.py
imports: import numpy
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework.tensor_shape import TensorShape
  from tensorflow.python.platform import test
  from tensorflow.python.tpu.tests import tpu_embedding_base_test
label_desc: Use image node_id 1 for calling the TPUEmbeddingTest obj's underlying member method code with example usage: obj.test_enqueue_dense_sparse_ragged() and returns: strategy, mid_level_api