def is_uuid_like(val):
    try:
        converted = str(uuid.UUID(val))
        if '-' not in val:
            converted = converted.replace('-', '')
        return converted == val
    except (TypeError, __HOLE__, AttributeError):
        return False
dataset/ETHPy150Open openstack/stacktach/stacktach/utils.py/is_uuid_like