code: def _check_branches(
      self,
      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)
          )
          raise ValueError(error_msg)
  
      if num_branches != len(num_channels):
          error_msg = "NUM_BRANCHES({}) <> NUM_CHANNELS({})".format(
              num_branches, len(num_channels)
          )
          raise ValueError(error_msg)
  
      if num_branches != len(num_inchannels):
          error_msg = "NUM_BRANCHES({}) <> NUM_INCHANNELS({})".format(
              num_branches, len(num_inchannels)
          )
          raise ValueError(error_msg)
  
imports: from collections import OrderedDict
  from typing import List
  import torch
  import torch.nn.functional
  from torch import nn
  from .common import EncoderModule, make_n_channel_input, _take
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