code: def plot_history(custom_results, native_results):
      fig, axs = plt.subplots(2, 1)
      ax0 = axs[0]
      ax1 = axs[1]
  
      pymerror = custom_results["train"]["PyMError"]
      merror = native_results["train"]["merror"]
  
      x = np.arange(0, kRounds, 1)
      ax0.plot(x, pymerror, label="Custom objective")
      ax0.legend()
      ax1.plot(x, merror, label="multi:softmax")
      ax1.legend()
  
      plt.show()
  
file_path: xgboost/demo/guide-python/custom_softmax.py
imports: import argparse
  import numpy
  from matplotlib import pyplot
  import xgboost
label_desc: Use image node_id 5 for calling a global function with example usage: plot_history(custom_results, native_results) without return types