code: def kernel_spline(fm_train_real=traindat, fm_test_real=testdat):
      import shogun as sg
  
      feats_train = sg.create_features(fm_train_real)
      feats_test = sg.create_features(fm_test_real)
  
      kernel = sg.create_kernel("SplineKernel")
      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_spline(fm_train_real, fm_test_real) and returns: km_train,  km_test,  kernel