code: def setUp(self):
      np.random.seed(30732)
  
      self.n_nodes = 3
      self.n_realizations = 2
  
      self.decay = np.random.rand()
  
      self.timestamps_list = [
          [
              np.cumsum(np.random.random(np.random.randint(3, 7)))
              for _ in range(self.n_nodes)
          ]
          for _ in range(self.n_realizations)
      ]
  
      self.end_time = 10
  
      self.baseline = np.random.rand(self.n_nodes)
      self.adjacency = np.random.rand(self.n_nodes, self.n_nodes)
      self.coeffs = np.hstack((self.baseline, self.adjacency.ravel()))
  
      self.realization = 0
      self.model = ModelHawkesExpKernLogLik(self.decay)
      self.model.fit(
          self.timestamps_list[self.realization],
          end_times=self.end_time,
      )
  
      self.model_list = ModelHawkesExpKernLogLik(self.decay)
      self.model_list.fit(self.timestamps_list)
  
file_path: tick/tick/hawkes/model/tests/model_hawkes_expkern_loglik_test.py
imports: import unittest
  import numpy
  from scipy.optimize import check_grad
  from tick.hawkes.model import ModelHawkesExpKernLogLik
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_log_likelihood, hawkes_exp_kernel_intensities
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