def dump_results_to_csv(self, results: List[dict]) -> None:
        """Dump the results to a csv file.

        Args:
            results (List[dict]): A list of results.
        """
        for i, result in enumerate(results):
            img_name = result['img_name']
            category = result['gt_category']
            condition = 'NaN'
            with open(self.csv_path, 'a') as f:
                writer = csv.writer(f)
                writer.writerow([
                    self.model_name, 1, i + 1, 'NaN',
                    result['pred_category'][0], category, condition, img_name
                ])
Dump the results to a csv file.

        Args:
            results (List[dict]): A list of results.
        
mmpretrain/evaluation/metrics/shape_bias_label.py