code: def kernel_wavelet(
      fm_train_real=traindat,
      fm_test_real=testdat,
      dilation=1.5,
      translation=1.0,
  ):
      import shogun as sg
  
      feats_train = sg.create_features(fm_train_real)
      feats_test = sg.create_features(fm_test_real)
  
      kernel = sg.create_kernel(
          "WaveletKernel", dilation=dilation, translation=translation
      )
      kernel.init(feats_train, feats_train)
      km_train = kernel.get_kernel_matrix()
  
      kernel.init(feats_train, feats_test)
      km_test = kernel.get_kernel_matrix()
      return km_train, km_test, kernel
  
label_desc: Use image node_id 1 for calling a global function with example usage: kernel_wavelet(fm_train_real, fm_test_real, dilation, translation) and returns: km_train,  km_test,  kernel