code: def resolve_plugin_model_op(opspec):
      for name, plugin in _plugins_by_resolve_model_op_priority():
          log.debug(
              "resolving model op for %r with plugin %r", opspec, name
          )
          try:
              model_op = plugin.resolve_model_op(opspec)
          except pluginlib.ModelOpResolutionError as e:
              raise OpSpecError(e) from e
          else:
              if model_op:
                  log.debug(
                      "got model op for %r from plugin %r: %s:%s",
                      opspec,
                      name,
                      model_op[0].name,
                      model_op[1],
                  )
                  return model_op
      raise NotSupported()
  
file_path: guildai/guild/model_proxy.py
imports: import logging
  import guild
  from guild import guildfile
  from guild import model
  from guild import plugin
label_desc: Use image node_id 4 for calling a global function with example usage: resolve_plugin_model_op(opspec) and returns: model_op