code: def _check_branches(
      num_branches, blocks, num_blocks, num_inchannels, num_channels
  ):
      if num_branches != len(num_blocks):
          error_msg = "NUM_BRANCHES({}) <> NUM_BLOCKS({})".format(
              num_branches, len(num_blocks)
          )
          logger.error(error_msg)
          raise ValueError(error_msg)
  
      if num_branches != len(num_channels):
          error_msg = "NUM_BRANCHES({}) <> NUM_CHANNELS({})".format(
              num_branches, len(num_channels)
          )
          logger.error(error_msg)
          raise ValueError(error_msg)
  
      if num_branches != len(num_inchannels):
          error_msg = "NUM_BRANCHES({}) <> NUM_INCHANNELS({})".format(
              num_branches, len(num_inchannels)
          )
          logger.error(error_msg)
          raise ValueError(error_msg)
  
imports: import os
  import logging
  import numpy
  import torch
  import torch.nn
  import torch._utils
  import torch.nn.functional
  from .bn_helper import BatchNorm2d, BatchNorm2d_class, relu_inplace
label_desc: Use image node_id 2 for calling the HighResolutionModule obj's underlying member method code with example usage: obj._check_branches(num_branches, blocks, num_blocks, num_inchannels, num_channels) without return types