def test_variable_initialization_with_native_array(self):
        """Test variable init with native array initializer."""
        v = backend.Variable(
            initializer=ops.ones((2, 2), dtype="int32"), trainable=False
        )
        self.assertAllClose(v.value, np.ones((2, 2)))
        self.assertEqual(v.dtype, "int32")
Test variable init with native array initializer.
keras/src/backend/common/variables_test.py