code: def save_output(self, postprocessor_idx=None, raw_data=None):
      # Currently assumes Nifti output. TODO: Make automatically detect output or determine with a class variable.
      # Ideally, split also this out into a saving.py function in utils.
  
      for input_data in self.return_objects:
          output_filenames = self.generate_filenames(
              raw_data, postprocessor_idx
          )
  
          if self.output_extension in [".csv"]:
              self.save_to_csv(input_data, output_filenames)
          else:
              self.save_to_disk(input_data, output_filenames, raw_data)
  
          if self.show_output:
              # This function call will need to be updated as Outputs is extended for more data types.
              check_data(
                  {"prediction": input_data},
                  batch_size=1,
                  **self.kwargs,
              )
  
      return
  
imports: import os
  import csv
  import numpy
  from collections import defaultdict
  from deepneuro.utilities.conversion import save_data
  from deepneuro.utilities.util import add_parameter, replace_suffix, nifti_splitext, additional_kwargs
  from deepneuro.utilities.visualize import check_data
label_desc: Use image node_id 12 for calling the Output obj's underlying member method code with example usage: obj.save_output(postprocessor_idx, raw_data) without return types