code: def icon_resource(name, package=None):
      
      if not package:
          package = '%s.resources.images' % calling_package()
      name = resource_filename(package, name)
      if not name.startswith('/'):
          return 'file://%s' % abspath(name)
      return 'file://%s' % name
docs: Returns the absolute URI path to an image. If a package is not explicitly specified then the calling package name is
      used.
  
      :param name: path relative to package path of the image resource.
      :param package: package name in dotted format.
      :return: the file URI path to the image resource (i.e. file:///foo/bar/image.png).