code: def test_resnest_bottleneck():
      with pytest.raises(AssertionError):
          # Style must be in ['pytorch', 'caffe']
          BottleneckS(
              64, 64, radix=2, reduction_factor=4, style="tensorflow"
          )
  
      # Test ResNeSt Bottleneck structure
      block = BottleneckS(
          2, 4, radix=2, reduction_factor=4, stride=2, style="pytorch"
      )
      assert block.avd_layer.stride == 2
      assert block.conv2.channels == 4
  
      # Test ResNeSt Bottleneck forward
      block = BottleneckS(16, 4, radix=2, reduction_factor=4)
      x = torch.randn(2, 16, 56, 56)
      x_out = block(x)
      assert x_out.shape == torch.Size([2, 16, 56, 56])
  
imports: import pytest
  import torch
  from mmdet.models.backbones import ResNeSt
  from mmdet.models.backbones.resnest import Bottleneck
label_desc: Use image node_id 1 for calling a global function with example usage: test_resnest_bottleneck() without return types