code: def resolver_for_source(source, dep):
      res_proxy = ResourceProxy(dep.res_location, dep.config)
      return resolverlib.for_resdef_source(source, res_proxy)
  
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 22 for calling a global function with example usage: resolver_for_source(source, dep) and returns: resolverlib