code: def test_bert_preprocessor(
      self, tokenizer: bert_tokenizer.SupportedBertTokenizers
  ):
      csv_file = self._get_csv_file()
      dataset = text_classifier_ds.Dataset.from_csv(
          filename=csv_file, csv_params=self.CSV_PARAMS_
      )
      bert_spec = (
          model_spec.SupportedModels.MOBILEBERT_CLASSIFIER.value()
      )
      bert_preprocessor = preprocessor.BertClassifierPreprocessor(
          seq_len=5,
          do_lower_case=bert_spec.do_lower_case,
          uri=bert_spec.get_path(),
          model_name=bert_spec.name,
          tokenizer=tokenizer,
      )
      preprocessed_dataset = bert_preprocessor.preprocess(dataset)
      labels = []
      input_masks = []
      for features, label in preprocessed_dataset.gen_tf_dataset():
          self.assertEqual(label.shape, [1])
          labels.append(label.numpy()[0])
          self.assertSameElements(
              features.keys(),
              ["input_word_ids", "input_mask", "input_type_ids"],
          )
          for feature in features.values():
              self.assertEqual(feature.shape, [1, 5])
          input_masks.append(features["input_mask"].numpy()[0])
          npt.assert_array_equal(
              features["input_type_ids"].numpy()[0], [0, 0, 0, 0, 0]
          )
      npt.assert_array_equal(
          np.stack(input_masks),
          np.array([[1, 1, 1, 1, 1], [1, 1, 1, 1, 0]]),
      )
      self.assertEqual(labels, [1, 0])
  
imports: import csv
  import io
  import os
  import tempfile
  from unittest import mock
  from absl.testing import parameterized
  import mock
  import numpy
  import numpy.testing
  import tensorflow
  from mediapipe.model_maker.python.core.data import cache_files
  from mediapipe.model_maker.python.text.text_classifier import bert_tokenizer
  from mediapipe.model_maker.python.text.text_classifier import dataset
  from mediapipe.model_maker.python.text.text_classifier import model_spec
  from mediapipe.model_maker.python.text.text_classifier import preprocessor
label_desc: Use image node_id 4 for calling the PreprocessorTest obj's underlying member method code with example usage: obj.test_bert_preprocessor(tokenizer) without return types