def _maybe_register_addon_ops():
  """Optionally import libraries to register additional TF ops."""

  def _try_import(name):
    try:
      importlib.import_module(name)
    except (ImportError, tf.errors.NotFoundError):
      tf.compat.v1.logging.info('{} is not available.'.format(name))
      pass

  # LINT.IfChange
  _try_import('struct2tensor')
  _try_import('tensorflow_decision_forests')
  _try_import('tensorflow_text')
  # LINT.ThenChange(tensorflow_model_analysis/utils/model_util.py)
Optionally import libraries to register additional TF ops.
tensorflow_transform/saved/saved_transform_io.py