code: def _encode_transformed_data_batch(
      data: Tuple[pa.RecordBatch, Dict[str, pa.Array]],
      coder: example_coder.RecordBatchToExamplesEncoder,
  ) -> List[bytes]:
      """Produces a list of serialized tf.Examples from transformed data."""
      # Drop unary pass-through features that are not relevant for this testing
      # framework.
      record_batch, _ = data
      return coder.encode(record_batch)
  
imports: import os
  import tempfile
  from typing import Dict, Iterable, List, Optional, Tuple
  from absl import logging
  import apache_beam
  import pyarrow
  import tensorflow
  import tensorflow_transform
  import tensorflow_transform.beam
  from tensorflow_transform.beam.tft_beam_io import transform_fn_io
  from tensorflow_transform import test_case
  from tensorflow_transform.beam import test_helpers
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tfx_bsl.coders import example_coder
  import unittest
  from tensorflow.python.util.protobuf import compare
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: _encode_transformed_data_batch(data, coder) and returns: coder