code: def _path_for_opspec(opspec):
      if opspec.startswith(("/", "./")) and os.path.isfile(opspec):
          return opspec
      return os.path.join(config.cwd(), opspec)
  
imports: import logging
  import os
  import yaml
  import guild
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import model_proxy
  from guild import plugin
  from .None import r_util
label_desc: Use image node_id 3 for calling a global function with example usage: _path_for_opspec(opspec) and returns: os, opspec