code: def test_incremental_fit(self):
      # This should not raise a warning
      self.model.incremental_fit(self.timestamps, compute=False)
  
      msg = (
          "compute\(\) method was already called, computed "
          "kernels will be updated."
      )
      with self.assertWarnsRegex(UserWarning, msg):
          self.model.incremental_fit(self.timestamps, compute=True)
  
      new_model = HawkesConditionalLaw(n_quad=5, claw_method="lin")
      new_model.incremental_fit(self.timestamps, compute=False)
  
      # This should not raise a warning
      new_model.incremental_fit(self.timestamps, compute=True)
  
      with self.assertWarnsRegex(UserWarning, msg):
          new_model.incremental_fit(self.timestamps, compute=True)
  
file_path: tick/tick/hawkes/inference/tests/hawkes_conditional_law_test.py
imports: import os
  import unittest
  import numpy
  from numpy.random import random, randint
  from tick.base.inference import InferenceTest
  from tick.hawkes.inference import HawkesConditionalLaw
label_desc: Use image node_id 8 for calling the Test obj's underlying member method code with example usage: obj.test_incremental_fit() without return types