docstr: Test BaseCSVWriter callback without output defined
docstr_tok: ["Test","BaseCSVWriter","callback","without","output","defined"]
code: def test_csv_writer_with_no_output_rows_def(self) -> None:
      """
      Test BaseCSVWriter callback without output defined
      """
      input_dim = 2
      dataset_len = 10
      batch_size = 2
  
      my_unit = DummyPredictUnit(2)
      dataloader = generate_random_dataloader(
          dataset_len, input_dim, batch_size
      )
  
      # Throw exception because get_step_output_rows is not defined.
      with self.assertRaises(TypeError):
          # pyre-fixme[45]: Cannot instantiate abstract class `BaseCSVWriter`.
          csv_callback = BaseCSVWriter(
              header_row=_HEADER_ROW, dir_path="", filename=_FILENAME
          )
          predict(my_unit, dataloader, callbacks=[csv_callback])
  
file_path: tnt/tests/framework/callbacks/test_csv_writer.py
imports: import tempfile
  import unittest
  from typing import Any, List, Union
  from torchtnt.framework._test_utils import DummyPredictUnit, generate_random_dataloader
  from torchtnt.framework.callbacks.base_csv_writer import BaseCSVWriter
  from torchtnt.framework.predict import predict
  from torchtnt.framework.state import State
  from torchtnt.framework.unit import PredictUnit, TPredictData
label_desc: Use image node_id 3 for calling the BaseCSVWriterTest obj's underlying member method code with example usage: obj.test_csv_writer_with_no_output_rows_def() without return types