def get_cardinality(ob):
    if isinstance(ob, six.string_types):
        return 1
    try:
        return len(ob)
    except __HOLE__:
        return 1
dataset/ETHPy150Open syrusakbary/pyjade/pyjade/runtime.py/get_cardinality