code: def check_logits_losses(logits_list, losses):
      len_logits = len(logits_list)
      len_losses = len(losses["types"])
      if len_logits != len_losses:
          raise RuntimeError(
              "The length of logits_list should equal to the types of loss config: {} != {}.".format(
                  len_logits, len_losses
              )
          )
  
file_path: PaddleSeg/contrib/PanopticDeepLab/core/train.py
imports: import os
  import time
  from collections import deque
  import shutil
  import paddle
  import paddle.nn.functional
  from paddleseg.utils import TimeAverager, calculate_eta, resume, logger
  from core.val import evaluate
label_desc: Use image node_id 1 for calling a global function with example usage: check_logits_losses(logits_list, losses) without return types