code: def _load_texture(file_name, resolver):
      
      file_data = resolver.get(file_name)
      image = PIL.Image.open(util.wrap_as_stream(file_data))
      return image
docs: Load a texture from a file into a PIL image.