We can remove one of the parenthetical tests here and just say:

    if not self.csv_post_process or (callable(self.csv_post_process) and self.csv_post_process(val)):
        dataset.append(row_data)