def METHOD_NAME(self, pileupConfig, task, taskPath):
    """
    Query and compare contents of the the pileup JSON
    configuration files. Iterate over tasks's steps as
    it happens in the PileupFetcher.
    """
    for step in task.steps().nodeIterator():
        helper = WMStep.WMStepHelper(step)
        # returns e.g. instance of CMSSWHelper
        if hasattr(helper.data, "pileup"):
            decoder = JSONDecoder()
            stepPath = "%s/%s" % (taskPath, helper.name())
            pileupPath = "%s/%s" % (stepPath, "pileupconf.json")
            try:
                with open(pileupPath) as fObj:
                    pileupDict = decoder.decode(fObj.read())
            except IOError:
                m = "Could not read pileup JSON configuration file: '%s'" % pileupPath
                self.fail(m)
            self._queryAndCompareWithDBS(pileupDict, pileupConfig, helper.data.dbsUrl)