code: def createWCSObject(output,default_wcs,imageObjectList):
      
      from . import imageObject
      outwcs = imageObject.WCSObject(output)
      outwcs.default_wcs = default_wcs
      outwcs.wcs = default_wcs.copy()
      outwcs.final_wcs = default_wcs.copy()
      outwcs.single_wcs = default_wcs.copy()
  
      outwcs.updateContextImage(imageObjectList[0].createContext)
  
      #
      # Add exptime information for use with drizzle
      #
      outwcs._exptime,outwcs._expstart,outwcs._expend = util.compute_texptime(imageObjectList)
  
      outwcs.nimages = util.countImages(imageObjectList)
  
      return outwcs
docs: Converts a PyWCS WCS object into a WCSObject(baseImageObject) instance.