code: def setup(self, method):
      win = 100
      arr = np.random.rand(100000)
      if hasattr(DataFrame, "rolling"):
          df = DataFrame(arr).rolling(win)
  
          @test_parallel(num_threads=2)
          def parallel_rolling():
              getattr(df, method)()
  
          self.parallel_rolling = parallel_rolling
      elif have_rolling_methods:
          rolling = {
              "median": rolling_median,
              "mean": rolling_mean,
              "min": rolling_min,
              "max": rolling_max,
              "var": rolling_var,
              "skew": rolling_skew,
              "kurt": rolling_kurt,
              "std": rolling_std,
          }
  
          @test_parallel(num_threads=2)
          def parallel_rolling():
              rolling[method](arr, win)
  
          self.parallel_rolling = parallel_rolling
      else:
          raise NotImplementedError
  
imports: from functools import wraps
  import threading
  import numpy
  from pandas import DataFrame, Index, Series, date_range, factorize, read_csv
  from pandas.core.algorithms import take_nd
  from .pandas_vb_common import BaseIO
  from .pandas_vb_common import setup
label_desc: Use image node_id 1 for calling the ParallelRolling obj's underlying member method code with example usage: obj.setup(method) without return types