code: def get_features_labels(input_file):
      """
      Creating features and labels from the input file (train/test file)
      """
      train_file_lines = list(
          map(lambda x: x.strip(), input_file.readlines())
      )
  
      all_labels = list(
          filter(
              lambda x: "hierarchical" in x.strip(), train_file_lines
          )
      )[0].split()[-1]
  
      shogun_labels, taxonomy = get_taxonomy(all_labels)
  
      data_index = train_file_lines.index("@DATA")
      features, labels = get_data(
          train_file_lines[data_index + 1 :], shogun_labels
      )
  
      return features, labels, taxonomy
  
file_path: shogun/examples/undocumented/python/structure_hierarchical_multilabel_classification.py
imports: import shogun
  import numpy
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: get_features_labels(input_file) and returns: features,  labels,  taxonomy