code: def merge_lists_of_dicts(
      dict_list1: List[Dict],
      dict_list2: List[Dict],
      override_existing_values: bool = False,
  ) -> List[Dict]:
      """Merges two dict lists."""
      dict1 = {
          (sorted(list(i.keys()))[0] if isinstance(i, dict) else i): i
          for i in dict_list1
      }
      dict2 = {
          (sorted(list(i.keys()))[0] if isinstance(i, dict) else i): i
          for i in dict_list2
      }
      merged_dicts = merge_dicts(dict1, dict2, override_existing_values)
      return list(merged_dicts.values())
  
imports: import asyncio
  import functools
  import importlib
  import inspect
  import logging
  from typing import Text, Dict, Optional, Any, List, Callable, Collection, Type
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 15 for calling a global function with example usage: merge_lists_of_dicts(dict_list1, dict_list2, override_existing_values) and returns: list