code: def resetDQBits(imageObjectList, cr_bits_value=4096):
      
  
      if cr_bits_value > 0:
          for img in imageObjectList:
              for chip in range(1,img._numchips+1,1):
                  sci_chip = img._image[img.scienceExt,chip]
                  resetbits.reset_dq_bits(sci_chip.dqfile, cr_bits_value,
                                          extver=chip, extname=sci_chip.dq_extn)
docs: Reset the CR bit in each input image's DQ array