code: def setUp(self):
      np.random.seed(30732)
  
      self.dim = 3
      self.n_realizations = 2
      self.n_decays = 2
  
      self.decays = np.random.rand(self.n_decays)
  
      self.timestamps_list = [
          [
              np.cumsum(np.random.random(np.random.randint(3, 7)))
              for _ in range(self.dim)
          ]
          for _ in range(self.n_realizations)
      ]
  
      self.baseline = np.random.rand(self.dim)
      self.adjacency = np.random.rand(self.dim, self.dim, self.n_decays)
      self.coeffs = np.hstack((self.baseline, self.adjacency.ravel()))
  
      self.realization = 0
      self.model = ModelHawkesSumExpKernLeastSq(decays=self.decays)
      self.model.fit(self.timestamps_list[self.realization])
  
      self.model_list = ModelHawkesSumExpKernLeastSq(decays=self.decays)
      self.model_list.fit(self.timestamps_list)
  
imports: import pickle
  import unittest
  import numpy
  from numpy.linalg import norm
  from scipy.optimize import check_grad, fmin_bfgs
  from tick.base.inference import InferenceTest
  from tick.hawkes.model import ModelHawkesSumExpKernLeastSq
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_sumexp_kernel_intensities, hawkes_sumexp_kernel_varying_intensities, hawkes_least_square_error
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.setUp() without return types