code: def test_init(self):
      with self.assertRaises(AssertionError):
          GenericRoIExtractor(
              aggregation="other",
              roi_layer=dict(
                  type="RoIAlign", output_size=7, sampling_ratio=2
              ),
              out_channels=16,
              featmap_strides=[4, 8, 16, 32],
          )
  
      roi_extractor = GenericRoIExtractor(
          roi_layer=dict(
              type="RoIAlign", output_size=7, sampling_ratio=2
          ),
          out_channels=16,
          featmap_strides=[4, 8, 16, 32],
      )
      self.assertFalse(roi_extractor.with_pre)
      self.assertFalse(roi_extractor.with_post)
  
imports: import unittest
  import torch
  from mmdet.models.roi_heads.roi_extractors import GenericRoIExtractor
label_desc: Use image node_id 1 for calling the TestGenericRoIExtractor obj's underlying member method code with example usage: obj.test_init() without return types