def get_use_deep_copy_optimization(cls) -> bool:
    """Retrieves a user set use_deep_copy_optimization, None if not set."""
    state = cls._get_topmost_state_frame()
    if state.use_deep_copy_optimization is not None:
      return state.use_deep_copy_optimization
    return False
Retrieves a user set use_deep_copy_optimization, None if not set.
tensorflow_transform/beam/context.py