code: def search_params_parser(param):
      """Parser params of search interface and return top_ks, nqs, nprobes"""
  
      # parse top-k, set default value if top-k not in param
      if "top_ks" not in param:
          top_ks = [10]
      else:
          top_ks = param["top_ks"]
      if isinstance(top_ks, int):
          top_ks = [top_ks]
      elif isinstance(top_ks, list):
          top_ks = list(top_ks)
      else:
          logger.warning("Invalid format top-ks: %s" % str(top_ks))
  
      # parse nqs, set default value if nq not in param
      if "nqs" not in param:
          nqs = [10]
      else:
          nqs = param["nqs"]
      if isinstance(nqs, int):
          nqs = [nqs]
      elif isinstance(nqs, list):
          nqs = list(nqs)
      else:
          logger.warning("Invalid format nqs: %s" % str(nqs))
  
      # parse nprobes
      if "nprobes" not in param:
          nprobes = [1]
      else:
          nprobes = param["nprobes"]
      if isinstance(nprobes, int):
          nprobes = [nprobes]
      elif isinstance(nprobes, list):
          nprobes = list(nprobes)
      else:
          logger.warning("Invalid format nprobes: %s" % str(nprobes))
  
      return top_ks, nqs, nprobes
  
imports: import logging
label_desc: Use image node_id 4 for calling a global function with example usage: search_params_parser(param) and returns: top_ks,  nqs,  nprobes