def test_special_character_name(self):
        """Test initialization with special characters in the name."""
        with self.assertRaisesRegex(ValueError, "Cannot convert"):
            QuantizedDTypePolicy(
                mode="int8", source_name="@int8_from_mixed_bfloat16!"
            )
Test initialization with special characters in the name.
keras/src/dtype_policies/dtype_policy_test.py