code: def _apply_opdef_defaults(opdefs):
      defaults = {
          "flag-encoder": "guild.plugins.skopt:encode_flag_for_optimizer",
          "default-max-trials": 20,
          "delete-on-success": False,
          "can-stage-trials": False,
          "env": {
              "NO_OP_INTERRUPTED_MSG": "1",
          },
      }
      for opdef in opdefs.values():
          opdef.update(
              {
                  name: defaults[name]
                  for name in defaults
                  if name not in opdef
              }
          )
  
file_path: guildai/guild/plugins/skopt.py
imports: import yaml
  import guild
  from guild import flag_util
  from guild import model
  from guild import model_proxy
  from guild import plugin
label_desc: Use image node_id 2 for calling a global function with example usage: _apply_opdef_defaults(opdefs) without return types