code: def multiclass_id3classifiertree(
      train=train_data, labels=train_labels, test=test_data
  ):
      try:
          import shogun as sg
          from shogun import MulticlassLabels, ID3ClassifierTree
      except ImportError:
          return
  
      # wrap features and labels into Shogun objects
      feats_train = sg.create_features(train)
      feats_test = sg.create_features(test)
      feats_labels = MulticlassLabels(labels)
  
      # ID3 Tree formation
      id3 = ID3ClassifierTree()
      id3.set_labels(feats_labels)
      id3.train(feats_train)
  
      # Classify test data
      output = id3.apply_multiclass(feats_test).get_labels()
  
      return id3, output
  
label_desc: Use image node_id 1 for calling a global function with example usage: multiclass_id3classifiertree(train, labels, test) and returns: id3,  output