docstr: setup any state tied to the execution of the given method in a
  class.  setup_method is invoked for every test method of a class.
docstr_tok: ["setup","any","state","tied","to","the","execution","of","the","given","method","in","a","class",".","setup_method","is","invoked","for","every","test","method","of","a","class","."]
code: def setup_method(self, method):
      """setup any state tied to the execution of the given method in a
      class.  setup_method is invoked for every test method of a class.
      """
      self.sc = init_nncontext(
          init_spark_conf()
          .setMaster("local[1]")
          .setAppName("test text set")
      )
      text1 = "Hello my friend, please annotate my text"
      text2 = "hello world, this is some sentence for my test"
      text3 = "another text for test"
      self.texts = [text1, text2, text3]
      self.labels = [0.0, 1, 1]
      resource_path = os.path.join(
          os.path.split(__file__)[0], "../../resources"
      )
      self.path = os.path.join(resource_path, "news20")
      self.glove_path = os.path.join(
          resource_path, "glove.6B/glove.6B.50d.txt"
      )
      self.qa_path = os.path.join(resource_path, "qa")
  
imports: import pytest
  import shutil
  from bigdl.optim.optimizer import SGD
  from zoo.feature.common import ChainedPreprocessing, Relations
  from zoo.feature.text import *
  from zoo.common.nncontext import *
  from zoo.models.textclassification import TextClassifier
  from zoo.models.textmatching import KNRM
  from zoo.pipeline.api.keras.models import Sequential
  from zoo.pipeline.api.keras.layers import TimeDistributed
  from zoo.pipeline.api.keras.objectives import SparseCategoricalCrossEntropy
label_desc: Use image node_id 1 for calling the TestTextSet obj's underlying member method code with example usage: obj.setup_method(method) without return types