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[4]")
          .setAppName("test feature set")
      )
      self.sc = init_nncontext(sparkConf)
  
file_path: analytics-zoo/pyzoo/test/zoo/feature/test_feature_common.py
imports: import pytest
  from bigdl.nn.layer import *
  from bigdl.nn.criterion import *
  from bigdl.optim.optimizer import *
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.feature.common import *
  from zoo import init_nncontext, init_spark_conf
label_desc: Use image node_id 1 for calling the TestFeatureCommon obj's underlying member method code with example usage: obj.setup_method(method) without return types