code: def median(data):
      data.sort()
      mid = len(data) // 2
      median = (data[mid] + data[~mid]) / 2
      return median
  
file_path: PaddleDetection/tools/box_distribution.py
imports: import matplotlib.pyplot
  import json
  import numpy
  import argparse
  from pycocotools.coco import COCO
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: median(data) and returns: median