code: def hawkes_sumexp_kernel_varying_intensities(
      baseline, decays, adjacency, timestamps
  ):
      # in this case baseline is a function of time
      dim = len(timestamps)
  
      kernels = {}
      for i in range(dim):
          kernels[i] = {}
          for j in range(dim):
              kernels[i][
                  j
              ] = lambda t, i=i, j=j: sum_exponential_kernel(
                  t, adjacency[i, j], decays
              )
  
      return hawkes_intensities_varying_baseline(
          timestamps, baseline, kernels
      )
  
file_path: tick/tick/hawkes/model/tests/model_hawkes_test_utils.py
imports: import numpy
  from scipy.integrate import quad
label_desc: Use image node_id 9 for calling a global function with example usage: hawkes_sumexp_kernel_varying_intensities(baseline, decays, adjacency, timestamps) and returns: hawkes_intensities_varying_baseline