code: def merge_dicts(dict1, dict2):
      """Recursively merges dict2 into dict1"""
      if not isinstance(dict1, dict) or not isinstance(dict2, dict):
          return dict2
      for k in dict2:
          if k in dict1:
              dict1[k] = merge_dicts(dict1[k], dict2[k])
          else:
              dict1[k] = dict2[k]
      return dict1
  
imports: from typing import Optional, Any
label_desc: Use image node_id 1 for calling a global function with example usage: merge_dicts(dict1, dict2) and returns: dict1, dict2