parameters: (node, input_list)
docstring: remove node input except element in input_list
          :param node:
          :param input_list:
          :return:
docstring_summary: remove node input except element in input_list
          :param node:
          :param input_list:
          :return:
docstring_tokens: remove node input except element in input_list : param node : : param input_list : : return :
function: def retain_input(node, input_list):
          '''
          remove node input except element in input_list
          :param node:
          :param input_list:
          :return:
          '''
          new_input = []
          for index, node_object in enumerate(node['input']):
              if node_object in input_list:
                  input_list.remove(node_object)
                  new_input.append(node_object)
          node['input'] = new_input
function_tokens: def retain_input ( node , input_list ) : new_input = [ ] for index , node_object in enumerate ( node [ 'input' ] ) : if node_object in input_list : input_list . remove ( node_object ) new_input . append ( node_object ) node [ 'input' ] = new_input