def type_name(value):
    return "struct" if isinstance(value, dict) else \
        "sequence" if isinstance(value, (tuple, list)) else \
        type(value).__name__
Returns pseudo-YAML type name of given value.
dataset/ETHPy150Open 0k/shyaml/shyaml.py/type_name