docstr: Return an Img instance from the given image filename and
  worldfile filename.
docstr_tok: ["Return","an","Img","instance","from","the","given","image","filename","and","worldfile","filename","."]
code: def from_world_file(cls, img_fname, world_fname):
      """
      Return an Img instance from the given image filename and
      worldfile filename.
  
      """
      im = Image.open(img_fname)
      with open(world_fname) as world_fh:
          extent, pix_size = cls.world_file_extent(world_fh, im.size)
      if hasattr(im, "close"):
          im.close()
      return cls(img_fname, extent, "lower", pix_size)
  
imports: import collections
  from pathlib import Path
  import numpy
  from PIL import Image
  import shapely.geometry
label_desc: Use image node_id 7 for calling the Img obj's underlying member method code with example usage: obj.from_world_file(cls, img_fname, world_fname) and returns: cls