code: def should_replace(new_config, base_config, key):
      """Find out whether we should replace a key when merging."""
      try:
          base_replace = base_config[key][REPLACE_KEY]
      except KeyError:
          base_replace = None
      try:
          new_replace = new_config[key][REPLACE_KEY]
      except KeyError:
          new_replace = None
  
      if new_replace:
          return True
      elif new_replace is None and base_replace:
          return True
  
      return False
  
file_path: luminoth/luminoth/utils/config.py
imports: import inspect
  import os.path
  import tensorflow
  import yaml
  from easydict import EasyDict
  from luminoth.models import get_model
label_desc: Use image node_id 8 for calling a global function with example usage: should_replace(new_config, base_config, key) and returns: False, True, True