code: def _check_branches(
      self, num_branches, num_blocks, num_inchannels, num_channels
  ):
      if num_branches != len(num_blocks):
          error_msg = f"Num_branches {num_branches} is not equal\
                  to the length of num_blocks {len(num_blocks)}"
  
          raise ValueError(error_msg)
  
      if num_branches != len(num_channels):
          error_msg = f"Num_branches {num_branches} is not equal\
                  to the length of num_channels {len(num_channels)}"
  
          raise ValueError(error_msg)
  
      if num_branches != len(num_inchannels):
          error_msg = f"Num_branches {num_branches} is not equal\
                  to the length of num_inchannels {len(num_inchannels)}"
  
          raise ValueError(error_msg)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.models import layers
  from paddleseg.utils import utils, logger
  from paddleseg.models.backbones.transformer_utils import *
label_desc: Use image node_id 2 for calling the HighResolutionTransformerModule obj's underlying member method code with example usage: obj._check_branches(num_branches, num_blocks, num_inchannels, num_channels) without return types