def _CheckFormatTokenSubtypes(self, uwlines, list_of_expected):
    actual = []
    for uwl in uwlines:
      filtered_values = [(ft.value, ft.subtypes)
                         for ft in uwl.tokens
                         if ft.name not in pytree_utils.NONSEMANTIC_TOKENS]
      if filtered_values:
        actual.append(filtered_values)

    self.assertEqual(list_of_expected, actual)
Check that the tokens in the UnwrappedLines have the expected subtypes.
dataset/ETHPy150Open google/yapf/yapftests/subtype_assigner_test.py/SubtypeAssignerTest._CheckFormatTokenSubtypes