def is_valid_uuid(workflow_id, version=4):
    "To validate Cromwell's UUID (lowercase only).\n    This does not allow uppercase UUIDs.\n    "
    if (not isinstance(workflow_id, str)):
        return False
    if (not workflow_id.islower()):
        return False
    try:
        UUID(workflow_id, version=version)
    except ValueError:
        return False
    return True
To validate Cromwell's UUID (lowercase only).
This does not allow uppercase UUIDs.
def is_valid_uuid(workflow_id, version=4):
    "To validate Cromwell's UUID (lowercase only).\n    This does not allow uppercase UUIDs.\n    "
    if (not isinstance(workflow_id, str)):
        return False
    if (not workflow_id.islower()):
        return False
    try:
        UUID(workflow_id, version=version)
    except ValueError:
        return False
    return True