code: def runTest(self):
      data = self.spark.createDataFrame(
          [
              [
                  "My name is Clara, I live in New York and Hellen lives in Paris."
              ]
          ]
      ).toDF("text")
  
      document_assembler = (
          DocumentAssembler()
          .setInputCol("text")
          .setOutputCol("document")
      )
  
      sentence_detector = (
          SentenceDetector()
          .setInputCols(["document"])
          .setOutputCol("sentence")
      )
  
      tokenizer = (
          Tokenizer().setInputCols(["sentence"]).setOutputCol("token")
      )
  
      zero_shot_ner = (
          ZeroShotNerModel()
          .pretrained("roberta_base_qa_squad2")
          .setEntityDefinitions(
              {
                  "NAME": [
                      "What is his name?",
                      "What is my name?",
                      "What is her name?",
                  ],
                  "CITY": ["Which city?", "Which is the city?"],
              }
          )
          .setInputCols(["sentence", "token"])
          .setOutputCol("zero_shot_ner")
      )
  
      results = (
          Pipeline()
          .setStages(
              [
                  document_assembler,
                  sentence_detector,
                  tokenizer,
                  zero_shot_ner,
              ]
          )
          .fit(data)
          .transform(data)
          .cache()
      )
  
      results.selectExpr(
          "document",
          'explode(filter(zero_shot_ner, x -> x.result <> "O")) AS entity',
      ).select(
          "document.result",
          "entity.result",
          "entity.metadata.word",
          "entity.metadata.confidence",
          "entity.metadata.question",
      ).show(
          truncate=False
      )
  
      self.assertEqual(
          results.selectExpr("explode(zero_shot_ner) AS entity")
          .filter('entity.result <> "O"')
          .count(),
          5,
      )
  
file_path: spark-nlp/python/test/annotator/ner/zero_shot_ner_model_test.py
imports: import unittest
  import pytest
  from pyspark.ml import Pipeline
  from sparknlp.annotator import *
  from test.util import SparkContextForTest
label_desc: Use image node_id 2 for calling the ZeroShotNerTestSpec obj's underlying member method code with example usage: obj.runTest() without return types