def _CheckUnwrappedLines(self, uwlines, list_of_expected):
    """Check that the given UnwrappedLines match expectations.

    Args:
      uwlines: list of UnwrappedLine
      list_of_expected: list of (depth, values) pairs. Non-semantic tokens are
        filtered out from the expected values.
    """
    actual = []
    for uwl in uwlines:
      filtered_values = [ft.value
                         for ft in uwl.tokens
                         if ft.name not in pytree_utils.NONSEMANTIC_TOKENS]
      actual.append((uwl.depth, filtered_values))

    self.assertEqual(list_of_expected, actual)
dataset/ETHPy150Open google/yapf/yapftests/pytree_unwrapper_test.py/PytreeUnwrapperTest._CheckUnwrappedLines/original