def build_object(obj_info, root_element='module'):
    print("Building extractor: ", obj_info[root_element])
    klass = import_class(obj_info[root_element])
    input_args = obj_info['args'] if 'args' in obj_info else []

    # map args to function outputs where requested
    for idx, arg in enumerate(input_args):
        if type(arg) is dict and arg in 'type' and arg['type'] == 'function_output':
            func = import_function(arg['func'])
            input_args[idx] = function_tree(func, arg['args'])

    # init the object
    obj = klass(*input_args)
    return obj
dataset/ETHPy150Open qe-team/marmot/marmot/experiment/import_utils.py/build_object/swapped operands of `in`