code: def merge_dicts(base, updates):
      """
      Given two dicts, merge them into a new dict as a shallow copy.
  
      Parameters
      ----------
      base: dict
          The base dictionary.
      updates: dict
          Secondary dictionary whose values override the base.
      """
      if not base:
          base = dict()
      if not updates:
          updates = dict()
      z = base.copy()
      z.update(updates)
      return z
  
file_path: python-ternary/ternary/lines.py
imports: from numpy import arange
  from matplotlib.lines import Line2D
  from .helpers import project_point
label_desc: Use image node_id 6 for calling a global function with example usage: merge_dicts(base, updates) and returns: z