code: def merge_values(src, new):
      
      if isinstance(src, dict) and isinstance(new, dict):
          return merge_dicts(src, new)
      else:
          if not isinstance(src, list):
              src = [src]
          if not isinstance(new, list):
              new = [new]
  
          return merge_lists(src, new)
docs: Merge two lists or dicts into a single element.