code: def merge_dicts(dict_a, dict_b, raise_on_duplicates=True):
      """This function takes two dictionaries and returns one singular merged dictionary.
  
      Args:
          dict_a: The first dictionary.
          dict_b: The second dictionary.
          raise_on_duplicates: If True, the function raises ValueError if there are duplicate keys.
              Otherwise, duplicate keys in `dict_b` will override the ones in `dict_a`.
  
      Returns:
          A merged dictionary.
  
      """
      duplicate_keys = dict_a.keys() & dict_b.keys()
      if raise_on_duplicates and len(duplicate_keys) > 0:
          raise ValueError(
              f"The two merging dictionaries contains duplicate keys: {duplicate_keys}."
          )
      return {**dict_a, **dict_b}
  
imports: import base64
  import inspect
  import logging
  import socket
  import subprocess
  import uuid
  from contextlib import closing
  from itertools import islice
  from sys import version_info
label_desc: Use image node_id 8 for calling a global function with example usage: merge_dicts(dict_a, dict_b, raise_on_duplicates) and returns: dict