code: def _apply_stage_opdef_config(stage_opdef, model_opdef):
      if model_opdef.main:
          log.warning(
              "ignoring operation main attribute %r for DvC stage import",
              model_opdef.main,
          )
      model_opdef.main = stage_opdef.main
      if not model_opdef.description:
          model_opdef.description = stage_opdef.description
      if model_opdef.flags:
          log.warning("ignoring operation flags for DvC stage import")
      model_opdef.flags = list(stage_opdef.flags)
  
imports: import copy
  import logging
  import os
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
  from guild import resolver
  from guild import resourcedef
  from guild import run_manifest
  from guild import util
  from .None import dvc_util
label_desc: Use image node_id 24 for calling a global function with example usage: _apply_stage_opdef_config(stage_opdef, model_opdef) without return types