docstr: ...Test pickling ability of HawkesKernelTimeFunc
          
docstr_tok: ["...","Test","pickling","ability","of","HawkesKernelTimeFunc"]
code: def test_HawkesKernelTimeFunc_pickle(self):
      """...Test pickling ability of HawkesKernelTimeFunc"""
      size = 10
      y_values = np.random.rand(size)
      t_values = np.arange(size, dtype=float)
      time_function = TimeFunction([t_values, y_values])
      obj = HawkesKernelTimeFunc(time_function)
  
      pickled = pickle.loads(pickle.dumps(obj))
  
      self.assertEqual(
          obj.time_function.value(1), pickled.time_function.value(1)
      )
      self.assertEqual(
          obj.time_function.value(2), pickled.time_function.value(2)
      )
      self.assertEqual(
          obj.time_function.value(1.5), pickled.time_function.value(1.5)
      )
      self.assertEqual(
          obj.time_function.value(0.75),
          pickled.time_function.value(0.75),
      )
      np.testing.assert_array_equal(
          obj.get_values(self.random_times),
          obj.get_values(self.random_times),
      )
  
file_path: tick/tick/hawkes/simulation/tests/hawkes_kernel_pickle_test.py
imports: import pickle
  import unittest
  import numpy
  from tick.base import TimeFunction
  from tick.hawkes import HawkesKernel0, HawkesKernelExp, HawkesKernelSumExp, HawkesKernelPowerLaw, HawkesKernelTimeFunc
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_HawkesKernelTimeFunc_pickle() without return types