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(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_spark_on_local(4)
  
file_path: analytics-zoo/pyzoo/test/zoo/pipeline/api/torch/test_torch_estimator.py
imports: import torch
  from torch import nn
  import torchvision
  import pytest
  from unittest import TestCase
  from zoo.pipeline.api.torch import TorchModel, TorchLoss
  from zoo.common.nncontext import *
  from torch.utils.data import TensorDataset, DataLoader
  from zoo.pipeline.estimator import *
  from zoo.pipeline.api.keras.optimizers import Adam
  from bigdl.optim.optimizer import MaxEpoch, EveryEpoch
  from zoo.pipeline.api.keras.metrics import Accuracy
  from zoo.feature.common import FeatureSet
label_desc: Use image node_id 1 for calling the TestPytorch obj's underlying member method code with example usage: obj.setUp() without return types