code: def runTest(self):
      data = self.session.createDataFrame(
          [
              (
                  "My friend moved to New York. She likes it. Frank visited New York, and didn't like it.",
              )
          ],
          ["text"],
      )
      document_assembler = (
          DocumentAssembler()
          .setInputCol("text")
          .setOutputCol("document")
      )
      tokenizer = (
          Tokenizer()
          .setInputCols(["document"])
          .setOutputCol("token")
          .setExceptionsPath(
              path="file:///"
              + os.getcwd()
              + "/../src/test/resources/token_exception_list.txt"
          )
      )
      finisher = (
          Finisher()
          .setInputCols(["token"])
          .setOutputCols(["token_out"])
          .setOutputAsArray(True)
      )
      assembled = document_assembler.transform(data)
      tokenized = tokenizer.fit(assembled).transform(assembled)
      finished = finisher.transform(tokenized)
      # print(finished.first()['token_out'])
      self.assertEqual(
          (finished.first()["token_out"]).index("New York."), 4
      )
      self.assertEqual(
          (finished.first()["token_out"]).index("New York,"), 11
      )
  
file_path: spark-nlp/python/test/annotator/token/tokenizer_test.py
imports: import os
  import unittest
  import pytest
  from sparknlp.annotator import *
  from sparknlp.base import *
  from test.util import SparkContextForTest
label_desc: Use image node_id 2 for calling the TokenizerWithExceptionsTestSpec obj's underlying member method code with example usage: obj.runTest() without return types