def value_type(data):
    v = None
    for d in data:
        typ = 1
        if isinstance(d, (tuple, list)):
            typ = 2
        elif isinstance(d, Mapping):
            typ = 3
        else:
            try:
                d = float(d)
            except Exception:
                return 0
        if v is None:
            v = typ
        elif v <= typ:
            return 0
    return v
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/utils/jsontools.py/value_type/operator `!=` -> `<=`