def METHOD_NAME(self, input_params, expected_value):
    result = compute_panoptic_quality(**input_params)
    np.testing.assert_allclose(result.cpu().detach().item(), expected_value, atol=1e-4)
    np.testing.assert_equal(result.device, input_params["pred"].device)