code: def buildDQMasks(imageObjectList,configObj):
      
      # Insure that input imageObject is a list
      if not isinstance(imageObjectList, list):
          imageObjectList = [imageObjectList]
  
      for img in imageObjectList:
          img.buildMask(configObj['single'], configObj['bits'])
docs: Build DQ masks for all input images.