code: def open(filename, frame='unspecified'):
          
          data = Image.load_data(filename)
          data = (data * (MAX_IR / BINARY_IM_MAX_VAL)).astype(np.uint16)
          return IrImage(data, frame)
docs: Creates an IrImage from a file.
  
          Parameters
          ----------
          filename : :obj:`str`
              The file to load the data from. Must be one of .png, .jpg,
              .npy, or .npz.
  
          frame : :obj:`str`
              A string representing the frame of reference in which the new image
              lies.
  
          Returns
          -------
          :obj:`IrImage`
              The new IR image.