docstr: Provide model op when running framework scripts directly.
docstr_tok: ["Provide","model","op","when","running","framework","scripts","directly","."]
code: def resolve_model_op(self, opspec):
      """Provide model op when running framework scripts directly."""
  
      model = model_for_script(opspec)
      if not model:
          return None
      self.log.debug(
          "%s is a %s framework operation", opspec, model.framework
      )
      return model, model.op_name
  
imports: import os
  import re
  from guild import config
  from guild import op_util
  from guild import plugin
  from guild import python_util
  from guild import summary
  from .python_script import PythonScriptModelProxy
  from .python_script import PythonScriptOpdefSupport
label_desc: Use image node_id 1 for calling the PythonFrameworksPlugin obj's underlying member method code with example usage: obj.resolve_model_op(opspec) and returns: model,  model, None