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
Skips test cases with RaggedFeature in TF 1.x.
tensorflow_transform/beam/tft_unit.py