docstr: ...Test simulation with negative kernel without threshold_negative_intensity
          
docstr_tok: ["...","Test","simulation","with","negative","kernel","without","threshold_negative_intensity"]
code: def test_hawkes_negative_intensity_fail(self):
      """...Test simulation with negative kernel without threshold_negative_intensity"""
      run_time = 40
  
      hawkes = SimuHawkes(
          n_nodes=1, end_time=run_time, verbose=False, seed=1398
      )
      kernel = HawkesKernelExp(-1.3, 0.8)
      hawkes.set_kernel(0, 0, kernel)
      hawkes.set_baseline(0, 0.3)
  
      msg = (
          "Simulation stopped because intensity went negative "
          "\(you could call ``threshold_negative_intensity`` to allow it\)"
      )
      with self.assertRaisesRegex(RuntimeError, msg):
          hawkes.simulate()
  
imports: import unittest
  import warnings
  from contextlib import contextmanager
  from itertools import product
  import numpy
  from tick.base import TimeFunction
  from tick.hawkes import SimuHawkes, HawkesKernelExp, HawkesKernelSumExp, HawkesKernel0, HawkesKernelPowerLaw, HawkesKernelTimeFunc, SimuHawkesExpKernels
label_desc: Use image node_id 10 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_negative_intensity_fail() without return types