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.
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("TestNNImageReader")
      )
      self.sc = init_nncontext(sparkConf)
      self.resource_path = os.path.join(
          os.path.split(__file__)[0], "../resources"
      )
  
file_path: BigDL/python/dllib/test/bigdl/nnframes/test_nn_image_reader.py
imports: import os
  import pytest
  from bigdl.dllib.feature.transform.vision.image import *
  from bigdl.dllib.utils.common import *
  from pyspark.sql.types import *
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.nnframes import *
label_desc: Use image node_id 1 for calling the TestNNImageReader obj's underlying member method code with example usage: obj.setup_method(method) without return types