code: def is_block(modules):
      """Check if is ResNet building block."""
      if isinstance(
          modules,
          (
              BasicBlock,
              Bottleneck,
              BottleneckX,
              Bottle2neck,
              SimplifiedBasicBlock,
          ),
      ):
          return True
      return False
  
file_path: mmdetection/tests/test_models/test_backbones/utils.py
imports: from torch.nn.modules import GroupNorm
  from torch.nn.modules.batchnorm import _BatchNorm
  from mmdet.models.backbones.res2net import Bottle2neck
  from mmdet.models.backbones.resnet import BasicBlock, Bottleneck
  from mmdet.models.backbones.resnext import Bottleneck
  from mmdet.models.layers import SimplifiedBasicBlock
label_desc: Use image node_id 1 for calling a global function with example usage: is_block(modules) and returns: False, True