code: def update_config(config_new, config_default):
      """
      Updates the loaded method configuration with default values.
      """
      if any([isinstance(v, dict) for v in list(config_new.values())]):
          for k, v in list(config_new.items()):
              if isinstance(v, dict) and k in config_default:
                  update_config(config_new[k], config_default[k])
              else:
                  config_default[k] = v
      else:
          config_default.update(config_new)
      return config_default
  
imports: import sys
  import optparse
  import os
  import numpy
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: update_config(config_new, config_default) and returns: config_default