keras/src/backend/tensorflow/core.py/Variable/_serialize_to_tensors
class Variable:    def _serialize_to_tensors(self):
        try:
            return self.value._serialize_to_tensors()
        except NotImplementedError:
            return {"VARIABLE_VALUE": self.value}