code: def plot_map(mAP):
      try:
          x = list(range(len(mAP)))
          plt.plot(x, mAP, label="mAp")
          plt.xlabel("epoch")
          plt.ylabel("mAP")
          plt.title("Eval mAP")
          plt.xlim(0, len(mAP))
          plt.legend(loc="best")
          plt.savefig("./mAP.png")
          plt.close()
          print("successful save mAP curve!")
      except Exception as e:
          print(e)
  
label_desc: Use image node_id 2 for calling a global function with example usage: plot_map(mAP) without return types