code: def test_added_lines(self):
      hunks = diff_parser.parse_hunks(self.crosstool_diff)
      small_hunk, big_hunk, literal_cc_hunk = hunks
  
      line_numbers = lambda hunk: [
          line_no for line_no, _ in hunk.added_lines()
      ]
  
      self.assertEqual(line_numbers(small_hunk), [27])
      self.assertEqual(line_numbers(big_hunk), list(range(303, 342)))
      self.assertEqual(line_numbers(literal_cc_hunk), [50])
  
file_path: tensorflow-upstream/third_party/xla/build_tools/lint/diff_parser_test.py
imports: from absl.testing import absltest
  from xla.build_tools.lint import diff_parser
label_desc: Use image node_id 5 for calling the ParseDiffTest obj's underlying member method code with example usage: obj.test_added_lines() without return types