code: def update(d: dict, u: Mapping) -> dict:
      """Recursively update a dict.
  
      Args:
          d: Dictionary to update.
          u: Dictionary with values to use.
  
      Returns:
          The merged dictionary.
      """
      for k, v in u.items():
          if isinstance(v, collections.abc.Mapping):
              d[k] = update(d.get(k, {}), v)
          else:
              d[k] = v
      return d
  
file_path: ydata-profiling/src/ydata_profiling/utils/common.py
imports: import collections.abc
  import zipfile
  from datetime import datetime, timedelta
  from imghdr import tests
  from pathlib import Path
  from typing import Mapping
label_desc: Use image node_id 1 for calling a global function with example usage: update(d, u) and returns: d