code: def draw_distribution(width, height, out_path):
      w_bins = int((max(width) - min(width)) // 10)
      h_bins = int((max(height) - min(height)) // 10)
      plt.figure()
      plt.subplot(221)
      plt.hist(width, bins=w_bins, color="green")
      plt.xlabel("Width rate *1000")
      plt.ylabel("number")
      plt.title("Distribution of Width")
      plt.subplot(222)
      plt.hist(height, bins=h_bins, color="blue")
      plt.xlabel("Height rate *1000")
      plt.title("Distribution of Height")
      plt.savefig(out_path)
      print(f"Distribution saved as {out_path}")
      plt.show()
  
file_path: PaddleSeg/contrib/QualityInspector/tools/det/box_distribution.py
imports: import argparse
  import json
  import matplotlib.pyplot
  import numpy
  from tqdm import tqdm
  from pycocotools.coco import COCO
label_desc: Use image node_id 2 for calling a global function with example usage: draw_distribution(width, height, out_path) without return types