def test_variable_assign(self):
        """Test assigning a new value to a variable."""
        v = backend.Variable(initializer=np.array([1.0, 2.0, 3.0]))
        v.assign(np.array([4.0, 5.0, 6.0]))
        self.assertAllClose(v.value, np.array([4.0, 5.0, 6.0]))
Test assigning a new value to a variable.
keras/src/backend/common/variables_test.py