def lookup_casstype(casstype):
    if isinstance(casstype, (CassandraType, CassandraTypeType)):
        return casstype
    try:
        return parse_casstype_args(casstype)
    except (ValueError, AssertionError, IndexError) as e:
        raise ValueError("Don't know how to parse type string %r: %s" % (casstype, e))
Given a Cassandra type as a string (possibly including parameters), hand
dataset/ETHPy150Open datastax/python-driver/cassandra/cqltypes.py/lookup_casstype