code: def plot_scalemid_dist(scale_mids_pre, scale_mids_gt):
      assert isinstance(scale_mids_pre, list) and isinstance(
          scale_mids_gt, list
      )
      scale_mids_pre, scale_mids_gt = np.array(
          scale_mids_pre
      ), np.array(scale_mids_gt)
      plt.figure(figsize=(12, 6))
      plt.subplot(121)
      mean, std = scale_mids_pre.mean(), scale_mids_pre.std()
      sns.distplot(scale_mids_pre)
      plt.xlabel("scale_mids", fontsize=12)
      plt.ylabel("prob", fontsize=12)
      plt.title("Pre: mean/std: {:.3f}/{:.3f}".format(mean, std))
      plt.subplot(122)
      mean, std = scale_mids_gt.mean(), scale_mids_gt.std()
      sns.distplot(scale_mids_gt)
      plt.xlabel("scale_mids", fontsize=12)
      plt.ylabel("prob", fontsize=12)
      plt.title("GT: mean/std: {:.3f}/{:.3f}".format(mean, std))
      name = str(time.time()).replace(".", "0") + ".png"
      plt.savefig(name)
      img = imread(name)
      os.remove(name)
      return img
  
file_path: insightface/body/human_pose/ambiguity_aware/lib/utils/vis.py
imports: import os
  import time
  import random
  import numpy
  import matplotlib
  import matplotlib.pyplot
  import seaborn
  from imageio import imread
  from mpl_toolkits.mplot3d import Axes3D
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: plot_scalemid_dist(scale_mids_pre, scale_mids_gt) and returns: img