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.
      """
      sparkConf = (
          init_spark_conf()
          .setMaster("local[1]")
          .setAppName("testTreeModel")
      )
      self.sc = init_nncontext(sparkConf)
      self.sqlContext = SQLContext(self.sc)
      self.resource_path = os.path.join(
          os.path.split(__file__)[0], "../resources"
      )
      assert self.sc.appName == "testTreeModel"
  
file_path: BigDL/python/dllib/test/bigdl/nnframes/test_treemodel.py
imports: import pytest
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.nnframes.tree_model import *
  from bigdl.dllib.utils.tf import *
  from pyspark.ml.linalg import DenseVector, VectorUDT
  from pyspark.sql.functions import udf, array
label_desc: Use image node_id 1 for calling the TestTreeModel obj's underlying member method code with example usage: obj.setup_method(method) without return types