code: def _package_res_location(res):
      return os.path.join(
          res.dist.location, res.dist.key.replace(".", os.path.sep)
      )
  
imports: import os
  import re
  import logging
  import typing
  from guild import cli
  from guild import resolver
  from guild import resourcedef
  from guild import util
label_desc: Use image node_id 15 for calling a global function with example usage: _package_res_location(res) and returns: os