def METHOD_NAME(
    self,
    obj: Any,
    op_equal: Optional[Callable[[Any, Any], bool]] = None,
) -> None:
    """Test that a given value is (de)serializable using 'Serializer'.
    Args:
        obj: Instance that needs serializing and deserializing.
        op_equal: Optional equality-checking function, overriding the
            default python equality operator when checking that the
            de-serialized object is similar to `obj`.
    """
    # Test that the object can be serialized into bytes data.
    data = Serializer.dumps(obj)
    self.assertIsInstance(data, bytes)
    # Test that the object can be de-serialized from the data.
    bis = Serializer.loads(data)
    self.assertIsInstance(bis, type(obj))
    if op_equal is None:
        self.assertEqual(bis, obj)
    else:
        self.assertTrue(op_equal(bis, obj))