code: def parse_args():
      parser = argparse.ArgumentParser(description="Frequency")
      parser.add_argument(
          "--anno_path",
          help="The path of annotated images",
          required=True,
          type=str,
      )
      parser.add_argument(
          "--temperature",
          help="The temperature of weights",
          default=0.8,
          type=float,
      )
      parser.add_argument(
          "--num_workers",
          dest="num_workers",
          help="How many processes are used for data conversion",
          type=int,
          default=cpu_count(),
      )
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/QualityInspector/tools/dataset/cal_class_weights.py
imports: import argparse
  import os
  import sys
  from collections import defaultdict
  from multiprocessing import Pool, cpu_count
  import cv2
  import numpy
  import prettytable
  import paddle
  import paddle.nn.functional
  from qinspector.utils.logger import setup_logger
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser