import uuid


def valid_uuid_str(uuid_str, version=4):
    """
    Returns true if uuid string given is a valid uuid
    """
    try:
        uuid.UUID(uuid_str, version=version)

    except ValueError:
        return False

    return True