def METHOD_NAME(self, cfg_file):
    model = get_detector_cfg(cfg_file)
    model.backbone.init_cfg = None
    from mmdet.registry import MODELS
    detector = MODELS.build(model)
    self.assertTrue(detector.backbone)
    self.assertTrue(detector.neck)
    self.assertTrue(detector.mask_head)
    if detector.with_bbox:
        self.assertTrue(detector.bbox_head)