def ast_for_testlist(testlist):
    if isinstance(testlist, list):
        value = ast.Tuple()
        value.elts = testlist
        value.ctx = Load
    else:
        value = testlist
    return value
Safely load untrusted YAML data from a stream into a python dict.
dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/ast_for_testlist--crossover with--dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/yaml_load