code: def extract_param_overrides(params_to_sweep):
      """
      Parameters
      ----------
        params_to_sweep : list[str]
          list of string key=[value] pairs, where values are to be interpreted
          as a json-style array. E.g. 'n_estimators=[10,100,1000]'
  
      Returns
      ---------
        List of dicts of params to evaluate. Always contains as least one dict.
      """
      import itertools
  
      if not params_to_sweep or len(params_to_sweep) == 0:
          return [{}]
  
      # Expand each arg into a list of (key,value) tuples
      single_param_lists = []
      for p in params_to_sweep:
          key, val_string = p.split("=")
          vals = json.loads(val_string)
          if not isinstance(vals, list):
              vals = [vals]  # Handle single-element sweep cleanly
          single_param_lists.append([(key, val) for val in vals])
  
      # Create dicts with the cartesian product of all arg-based lists
      tuple_list = itertools.product(*single_param_lists)
      dict_list = [dict(tl) for tl in tuple_list]
      return dict_list
  
label_desc: Use image node_id 1 for calling a global function with example usage: extract_param_overrides(params_to_sweep) and returns: dict_list, list