code: def kernel_distantsegments(
      fm_train_dna=traindat, fm_test_dna=testdat, delta=5, theta=5
  ):
      import shogun as sg
  
      feats_train = sg.create_string_features(fm_train_dna, sg.DNA)
      feats_test = sg.create_string_features(fm_test_dna, sg.DNA)
  
      kernel = sg.DistantSegmentsKernel(
          feats_train, feats_train, 10, delta, theta
      )
  
      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_distantsegments(fm_train_dna, fm_test_dna, delta, theta) and returns: km_train,  km_test,  kernel