code: def test_from_csv(self):
      csv_file = self._get_csv_file()
      csv_params = dataset.CSVParameters(
          text_column="text", label_column="label"
      )
      data = dataset.Dataset.from_csv(
          filename=csv_file, csv_params=csv_params
      )
      self.assertLen(data, 5)
      self.assertEqual(data.num_classes, 3)
      self.assertEqual(data.label_names, ["neg", "neutral", "pos"])
      data_values = set(
          [
              (text.numpy()[0], label.numpy()[0])
              for text, label in data.gen_tf_dataset()
          ]
      )
      expected_data_values = set(
          [
              (b"indifferent", 1),
              (b"extremely great", 2),
              (b"totally awful", 0),
              (b"super good", 2),
              (b"really bad", 0),
          ]
      )
      self.assertEqual(data_values, expected_data_values)
  
file_path: mediapipe/mediapipe/model_maker/python/text/text_classifier/dataset_test.py
imports: import csv
  import os
  import tensorflow
  from mediapipe.model_maker.python.text.text_classifier import dataset
label_desc: Use image node_id 2 for calling the DatasetTest obj's underlying member method code with example usage: obj.test_from_csv() without return types