code: def _handle_key_value(t_dict, key, value):
      
      if key in t_dict:
          val = t_dict[key]
          if isinstance(val, str):
              val = [val]
          val.append(value)
          return val
      return value
docs: Function to handle key has multi value, and return the values as list.