code: def setUp(self):
      self.spark = SparkSessionForTest.spark
  
      self.data = SparkSessionForTest.spark.createDataFrame(
          [
              [
                  "First document, this is my first sentence. This is my second sentence."
              ],
              [
                  "Second document, this is my second sentence. This is my second sentence."
              ],
              [
                  "Third document, climate change is arguably one of the most pressing problems of our time."
              ],
              [
                  "Fourth document, climate change is definitely one of the most pressing problems of our time."
              ],
              [
                  "Fifth document, Florence in Italy, is among the most beautiful cities in Europe."
              ],
              [
                  "Sixth document, Florence in Italy, is a very beautiful city in Europe like Lyon in France."
              ],
              [
                  "Seventh document, the French Riviera is the Mediterranean coastline of the southeast corner of France."
              ],
              [
                  "Eighth document, the warmest place in France is the French Riviera coast in Southern France."
              ],
          ]
      ).toDF("text")
  
file_path: spark-nlp/python/test/annotator/similarity/doc_similarity_ranker_test.py
imports: import unittest
  import pytest
  from sparknlp.annotator import *
  from sparknlp.annotator.similarity.document_similarity_ranker import *
  from sparknlp.base import *
  from test.util import SparkSessionForTest
label_desc: Use image node_id 1 for calling the DocumentSimilarityRankerTestSpec obj's underlying member method code with example usage: obj.setUp() without return types