def track_object(trackable: base.Trackable, name: Optional[str]):
  """Add `trackable` to the object trackers active in this scope."""
  global _OBJECT_TRACKER
  # The transform tf.function should always be traced
  # (call to get_concrete_function) within an object_tracker_scope.
  assert _OBJECT_TRACKER is not None
  _OBJECT_TRACKER.add_trackable_object(trackable, name)
Add `trackable` to the object trackers active in this scope.
tensorflow_transform/annotators.py