def METHOD_NAME(tmp_path):
    """ Run sct_process_segmentation with -normalize PAM50"""
    filename = str(tmp_path / 'tmp_file_out.csv')
    sct_process_segmentation.main(argv=['-i', sct_test_path('t2', 't2_seg-manual.nii.gz'), '-normalize-PAM50', '1',
                                        '-perslice', '1', '-vertfile', sct_test_path('t2', 't2_seg-manual_labeled.nii.gz'), '-o', filename])
    with open(filename, "r") as csvfile:
        reader = csv.DictReader(csvfile, delimiter=',')
        rows = list(reader)
        row = rows[26]
        assert row['Slice (I->S)'] == '827'
        assert float(row['MEAN(area)']) == pytest.approx(71.96880493869594)
        assert row['VertLevel'] == '5'