def certify_time(value, required=True):
    """
    Certifier for datetime.time values.

    :param value:
        The value to be certified.
    :param bool required:
        Whether the value can be `None`  Defaults to True.
    :raises CertifierTypeError:
        The type is invalid
    """
    if certify_required(
        value=value,
        required=required,
    ):
        return

    if not isinstance(value, time):
        raise CertifierTypeError(
            message="expected timestamp (time), but value is of type {cls!r}".format(
                cls=value.__class__.__name__),
            value=value,
            required=required,
        )
Certifier for datetime.time values.

    :param value:
        The value to be certified.
    :param bool required:
        Whether the value can be `None`  Defaults to True.
    :raises CertifierTypeError:
        The type is invalid