def cons(collection, value):
    if isinstance(value, collections.Mapping):
        if collection is None:
            collection = {}
        collection.update(**value)

    elif isinstance(value, six.string_types):
        if collection is None:
            collection = []
        collection.append(value)

    elif isinstance(value, collections.Iterable):
        if collection is None:
            collection = []
        collection.extend(value)

    else:
        if collection is None:
            collection = []
        collection.append(value)

    return collection
Check a breakpoint
dataset/ETHPy150Open armet/python-armet/armet/utils/functional.py/cons--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/CheckBpt