code: def median(data):
      data.sort()
      mid = len(data) // 2
      median = (data[mid] + data[~mid]) / 2
      return median
  
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 1 for calling a global function with example usage: median(data) and returns: median