def create_csv(self) -> str:
        """Create a csv file to store the results."""
        session_name = 'session-1'
        csv_path = osp.join(
            self.csv_dir, self.dataset_name + '_' + self.model_name + '_' +
            session_name + '.csv')
        if osp.exists(csv_path):
            os.remove(csv_path)
        directory = osp.dirname(csv_path)
        if not osp.exists(directory):
            os.makedirs(directory, exist_ok=True)
        with open(csv_path, 'w') as f:
            writer = csv.writer(f)
            writer.writerow([
                'subj', 'session', 'trial', 'rt', 'object_response',
                'category', 'condition', 'imagename'
            ])
        return csv_path
Create a csv file to store the results.
mmpretrain/evaluation/metrics/shape_bias_label.py