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.
      """
      JavaCreator.add_creator_class(
          "com.intel.analytics.bigdl.dllib.utils.python.api.PythonBigDLValidator"
      )
      sparkConf = (
          create_spark_conf()
          .setMaster("local[4]")
          .setAppName("test model")
      )
      self.sc = get_spark_context(sparkConf)
      init_engine()
  
file_path: BigDL/python/dllib/test/bigdl/test_pickler.py
imports: from bigdl.dllib.nn.layer import *
  from bigdl.dllib.nn.initialization_method import *
  from bigdl.dllib.nn.criterion import *
  from bigdl.dllib.optim.optimizer import *
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.utils.common import _py2java
  from bigdl.dllib.nn.initialization_method import *
  from bigdl.dllib.feature.dataset import movielens
  import numpy
  import tempfile
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from bigdl.dllib.utils.engine import compare_version
label_desc: Use image node_id 1 for calling the TestPickler obj's underlying member method code with example usage: obj.setup_method(method) without return types