code: def recursive_default(obj, default):
      if isinstance(default, dict):
          new_obj = {}
          for key in default:
              if key in obj:
                  new_obj[key] = recursive_default(
                      obj[key], default[key]
                  )
              else:
                  new_obj[key] = default[key]
          return type(default)(new_obj)
      else:
          return obj
  
imports: from __future__ import print_function, absolute_import
  import os
  import sys
  import logging
  import tempfile
  from time import time
  from functools import wraps
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: recursive_default(obj, default) and returns: type, obj