code: def make_feature_spec_wrapper(make_feature_spec, *args):
      """Skips test cases with RaggedFeature in TF 1.x."""
      try:
          return make_feature_spec(*args)
      except AttributeError as e:
          if "no attribute 'RaggedFeature'" in repr(e):
              raise unittest.SkipTest(
                  "RaggedFeature is not available in TF 1.x."
              )
          else:
              raise e
  
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 2 for calling a global function with example usage: make_feature_spec_wrapper(make_feature_spec) and returns: make_feature_spec