code: def buildMask(dqarr, bitvalue):
      
      return bitfield_to_boolean_mask(dqarr, bitvalue, good_mask_value=1,
                                      dtype=np.uint8)
docs: Builds a bit-mask from an input DQ array and a bitvalue flag