def METHOD_NAME(rv, in_):
    if type(in_) is dict:
        rv.update(in_)
        return rv
    elif type(in_) is list:
        for e in in_:
            METHOD_NAME(rv, e)
        return rv
    else:
        raise OnlYamlError("Element type '%s' cannot be added to the given dictionary." % (type(in_)))