def is_batch_rule(self, rule):
    'Return True if the underlying rule is to be used for batching the DAG.'
    return ((self.batch is not None) and (rule.name == self.batch.rulename))
Return True if the underlying rule is to be used for batching the DAG.
def is_batch_rule(self, rule):
    
    return ((self.batch is not None) and (rule.name == self.batch.rulename))