code: def test_hawkes_sumexp_constructor_errors(self):
      bad_adjacency = np.random.rand(
          self.n_nodes, self.n_nodes, self.n_decays + 1
      )
  
      msg = (
          "^adjacency matrix shape should be \(3, 3, 4\) but its shape "
          "is \(3, 3, 5\)$"
      )
      with self.assertRaisesRegex(ValueError, msg):
          SimuHawkesSumExpKernels(
              bad_adjacency, self.decays, baseline=self.baseline
          )
  
file_path: tick/tick/hawkes/simulation/tests/simu_hawkes_sumexp_kernels_test.py
imports: import unittest
  from itertools import product
  import numpy
  from tick.hawkes import SimuHawkesSumExpKernels, HawkesKernel0, HawkesKernelSumExp
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_sumexp_constructor_errors() without return types