def test_initialization_non_string_name(self):
        """Test initialization with a non-string name."""
        with self.assertRaisesRegex(TypeError, "'name' must be a string"):
            QuantizedDTypePolicy(mode="int8", source_name=123)
        with self.assertRaisesRegex(TypeError, "'name' must be a string"):
            QuantizedFloat8DTypePolicy(mode="float8", source_name=123)
Test initialization with a non-string name.
keras/src/dtype_policies/dtype_policy_test.py