class_docstr: Save the result of inference.
docstr: main func entrypoint
docstr_tok: ["main","func","entrypoint"]
code: def call(self, predictions, log_verbose=False):
      """main func entrypoint"""
      logits = predictions["logits"]
      preds = predictions["preds"]
      output_index = predictions["output_index"]
      if output_index is None:
          res_file = self.config["solver"]["postproc"].get(
              "res_file", ""
          )
      else:
          res_file = self.config["solver"]["postproc"][
              output_index
          ].get("res_file", "")
      if res_file == "":
          logging.info(
              "Infer res not saved. You can check 'res_file' in your config."
          )
          return
      res_dir = os.path.dirname(res_file)
      if not os.path.exists(res_dir):
          os.makedirs(res_dir)
      logging.info("Save inference result to: {}".format(res_file))
      with open(res_file, "w") as in_f:
          for logit, pred in zip(logits, preds):
              in_f.write(
                  " ".join(["{:.3f}".format(num) for num in logit])
                  + "\t{}\n".format(pred)
              )
  
imports: import os
  from absl import logging
  from delta.utils.postprocess.base_postproc import PostProc
  from delta.utils.register import registers
label_desc: Use image node_id 1 for calling the SavePredPostProc obj's underlying member method code with example usage: obj.call(predictions, log_verbose) without return types