def METHOD_NAME(self, test_image: str, expected_image: str, detector_config: Dict, overwrite_expectation: bool = False):
    oriImg = cv2.cvtColor(cv2.imread(test_image), cv2.COLOR_BGR2RGB)
    canvas = self.detector(oriImg, **detector_config)
    # Create expectation file
    if overwrite_expectation:
        cv2.imwrite(expected_image, cv2.cvtColor(canvas, cv2.COLOR_RGB2BGR))
    else:
        expected_canvas = cv2.cvtColor(cv2.imread(expected_image), cv2.COLOR_BGR2RGB)
        self.expect_same_image(canvas, expected_canvas, diff_img_path=expected_image.replace('.png', '_diff.png'))