code: def recurse(param_names, state, result):
      if len(param_names) == 0:
          result.append(dict(state))
          return
  
      curr_pn = param_names[0]
      param_names = param_names[1:]
      for x in params[curr_pn]:
          state[curr_pn] = x
          recurse(param_names, state, result)
  
file_path: FARM/test/benchmarks/question_answering_components.py
imports: from farm.infer import Inferencer
  from pprint import pformat
  import pandas
  from tqdm import tqdm
  import logging
  import json
  from datetime import date
label_desc: Use image node_id 5 for calling a global function with example usage: recurse(param_names, state, result) without return types