code: def merge(first, second):
      """
      Recursively merges two dictionaries.
  
      Second dictionary values will take precedence over those from the first one.
      Nested dictionaries are merged too.
  
      :param dict first: The first dictionary
      :param dict second: The second dictionary
      :return: the resulting merged dictionary
      :rtype: dict
      """
      if not isinstance(second, dict):
          return second
      result = deepcopy(first)
      for key, value in iteritems(second):
          if key in result and isinstance(result[key], dict):
              result[key] = merge(result[key], value)
          else:
              result[key] = deepcopy(value)
      return result
  
file_path: flask-restplus/flask_restplus/utils.py
imports: from __future__ import unicode_literals
  import re
  from copy import deepcopy
  from six import iteritems
  from ._http import HTTPStatus
label_desc: Use image node_id 1 for calling a global function with example usage: merge(first, second) and returns: result, second