docstr: ...Test force_simulation parameter of SimuHawkes
          
docstr_tok: ["...","Test","force_simulation","parameter","of","SimuHawkes"]
code: def test_simu_hawkes_force_simulation(self):
      """...Test force_simulation parameter of SimuHawkes"""
      diverging_kernel = [[HawkesKernelExp(2, 3)]]
      hawkes = SimuHawkes(
          kernels=diverging_kernel, baseline=[1], verbose=False
      )
      hawkes.end_time = 10
  
      msg = (
          "^Simulation not launched as this Hawkes process is not "
          "stable \(spectral radius of 2\). You can use "
          "force_simulation parameter if you really want to simulate it$"
      )
      with self.assertRaisesRegex(ValueError, msg):
          hawkes.simulate()
  
      msg = "^This process has already been simulated until time 0.000000$"
      with self.assertWarnsRegex(UserWarning, msg):
          hawkes.end_time = 0
          hawkes.force_simulation = True
          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 9 for calling the Test obj's underlying member method code with example usage: obj.test_simu_hawkes_force_simulation() without return types