code: def __call__(self, inputs):
      for _, img_info in inputs.items():
          preds = img_info["pred"]
          for pred in preds:
              if pred.get("isNG", 1):
                  if isinstance(self.score_threshold, dict):
                      if (
                          pred["category_id"]
                          in self.score_threshold.keys()
                      ):
                          threshold = self.score_threshold[
                              pred["category_id"]
                          ]
                      else:
                          pred["isNG"] = 1
                          continue
                  else:
                      threshold = self.score_threshold
  
                  if pred["score"] >= threshold:
                      pred["isNG"] = 1
                  else:
                      pred["isNG"] = 0
      return inputs
  
file_path: PaddleSeg/contrib/QualityInspector/qinspector/ops/postprocess.py
imports: from qinspector.cvlib.workspace import create, register
  from qinspector.utils.logger import setup_logger
label_desc: Use image node_id 2 for calling the JudgeDetByScores obj's underlying member method code with example usage: obj.__call__(inputs) and returns: inputs