code: def test_parse_bad_cc_diff(self):
      hunks = diff_parser.parse_hunks(self.bad_cc_diff)
      self.assertLen(hunks, 2)
  
      bad_cc_hunk, important_cc_hunk = hunks
  
      # check bad_cc_hunk
      self.assertEqual(bad_cc_hunk.file, "src/dir/bad.cc")
      self.assertEqual(bad_cc_hunk.start, 1)
      self.assertEqual(bad_cc_hunk.length, 7)
  
      expected_lines = [
          "+// This code is bad!",
          "+",
          "+using Make_Unique = std::make_unique; // OK",
          "+",
          "+std::unique_ptr<int> add(int a, int b) {",
          "+  return Make_Unique<int>(a + b); // OK. Fixed now!",
          "+}",
      ]
  
      self.assertEqual(bad_cc_hunk.lines, expected_lines)
  
      # check important_cc_hunk
      self.assertEqual(important_cc_hunk.file, "src/important.cc")
      self.assertEqual(important_cc_hunk.start, 1)
      self.assertEqual(important_cc_hunk.length, 5)
  
      expected_lines = [
          "+// Here we care if we find prohibited regexes.",
          "+",
          "+std::unique_ptr<int> add(int a, int b) {",
          "+  return std::make_unique<int>(a + b);",
          "+}",
      ]
  
      self.assertEqual(important_cc_hunk.lines, expected_lines)
  
file_path: tensorflow/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 3 for calling the ParseDiffTest obj's underlying member method code with example usage: obj.test_parse_bad_cc_diff() without return types