code: def _ensure_config_dep(config_src, opdef):
      """Ensures that opdef is configured to resolve config src."""
      existing = _find_config_res_source(opdef, config_src)
      if existing:
          _ensure_config_dep_attrs(existing)
      else:
          _add_config_dep(config_src, opdef)
  
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 11 for calling a global function with example usage: _ensure_config_dep(config_src, opdef) without return types