keras/src/utils/backend_utils.py/TFGraphScope/__init__
class TFGraphScope:    def __init__(self):
        self._original_value = global_state.get_global_attribute(
            "in_tf_graph_scope", False
        )