def METHOD_NAME():
    reader_cfg = load_config(FLAGS.reader_config)
    dataset = reader_cfg['EvalDataset']
    val_loader = create('EvalReader')(reader_cfg['EvalDataset'],
                                      reader_cfg['worker_num'],
                                      return_list=True)
    clsid2catid = {v: k for k, v in dataset.catid2clsid.items()}
    anno_file = dataset.get_anno()
    metric = COCOMetric(
        anno_file=anno_file, clsid2catid=clsid2catid, IouType='bbox')
    providers = ['CPUExecutionProvider']
    sess_options = ort.SessionOptions()
    sess_options.optimized_model_filepath = "./optimize_model.onnx"
    sess = ort.InferenceSession(
        FLAGS.model_path, providers=providers, sess_options=sess_options)
    eval(val_loader, metric, sess)