code: def _python_script_for_opspec(opspec):
      path = os.path.join(config.cwd(), opspec)
      if not python_util.is_python_script(path):
          return None
      try:
          return python_util.Script(path)
      except SyntaxError:
          return None
  
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 4 for calling a global function with example usage: _python_script_for_opspec(opspec) and returns: None, python_util, None