import re


def isuuid(value):
    """
    Return whether or not given value is a UUID (version 3, 4 or 5).
    If the value is a UUID (version 3, 4 or 5), this function returns ``True``, otherwise ``False``.

    Examples::

        >>> isuuid('a987fbc9-4bed-3078-cf07-9141ba07c9f3')
        True

        >>> isuuid('xxxA987FBC9-4BED-3078-CF07-9141BA07C9F3')
        False

    :param value: string to validate UUID (version 3, 4 or 5)
    """
    uuid = re.compile(r"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
    return bool(uuid.match(value))