code: def model_for_script(script_path):
      script = _python_script_for_opspec(script_path)
      if not script:
          return None
      framework = _framework_for_script(script)
      if not framework:
          return None
      return PythonFrameworkModelProxy(script.src, framework)
  
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 3 for calling a global function with example usage: model_for_script(script_path) and returns: PythonFrameworkModelProxy, None, None