def METHOD_NAME(case):
    formatter = get_target_formatter(case.target)
    assert isinstance(formatter, case.target_formatter_type)
    assert formatter.labels == case.labels
    assert formatter.num_classes == case.num_classes
    assert [formatter(t) for t in case.target] == case.formatted_target