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):
      """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(
          create_spark_conf()
          .setMaster("local[4]")
          .setAppName("test image set")
          .set("spark.shuffle.reduceLocality.enabled", "false")
          .set("spark.shuffle.blockTransferService", "nio")
          .set("spark.scheduler.minRegisteredResourcesRatio", "1.0")
          .set("spark.speculation", "false")
      )
      resource_path = os.path.join(
          os.path.split(__file__)[0], "../../resources"
      )
      image_path = os.path.join(resource_path, "image3d/a.mat")
      img = h5py.File(image_path)["meniscus_im"]
      sample = np.array(img)
      self.sample = np.expand_dims(sample, 3)
  
file_path: analytics-zoo/pyzoo/test/zoo/feature/image3d/test_image3d.py
imports: import pytest
  import h5py
  from math import pi
  from zoo.common.nncontext import *
  from zoo.feature.common import *
  from zoo.feature.image3d.transformation import *
label_desc: Use image node_id 1 for calling the Test_Image3D obj's underlying member method code with example usage: obj.setup_method() without return types