keras/src/layers/layer.py/Layer/_open_name_scope
class Layer:    def _open_name_scope(self):
        if self._parent_path is None:
            self._parent_path = current_path()
        return backend.name_scope(self.name, caller=self)