code: def read_chd_header(chd_file):
      
  
      with open(chd_file, "rb") as f:
          header = {
              "cinefileheader": cine.CINEFILEHEADER(),
              "bitmapinfoheader": cine.BITMAPINFOHEADER(),
              "setup": cine.SETUP(),
          }
          f.readinto(header["cinefileheader"])
          f.readinto(header["bitmapinfoheader"])
          f.readinto(header["setup"])
  
      return header
docs: read the .chd header file created when Vision Research software saves the images in a file format other than .cine