code: def _ensure_config_dep_attrs(source):
      """Ensures that a dep source is configured resolving a config.
  
      Specificlaly, sets 'always_resolve' and 'replace_existing' both to
      True if they are not alreay set. This ensures that a run restart
      will resolve any new flag values by re-resolving the config source.
      """
      if source.always_resolve is None:
          source.always_resolve = True
      if source.replace_existing is None:
          source.replace_existing = True
  
imports: import logging
  import os
  from guild import guildfile
  from guild import op_util
  from guild import plugin
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 13 for calling a global function with example usage: _ensure_config_dep_attrs(source) without return types