code: def test_raises_error_with_offending_line_number(self):
      contents = ["1 qid:1 2:0.0", "malformatted line", "1 qid:1 2:0.0"]
      with self.assertRaisesWithPredicateMatch(
          ParserError, lambda error: error.line_number == 2
      ):
          for _ in LibSVMRankingParser(contents, {}):
              pass
  
file_path: datasets/tensorflow_datasets/ranking/libsvm_ranking_parser_test.py
imports: from tensorflow_datasets import testing
  from tensorflow_datasets.ranking.libsvm_ranking_parser import LibSVMRankingParser
  from tensorflow_datasets.ranking.libsvm_ranking_parser import ParserError
label_desc: Use image node_id 10 for calling the LibSVMRankingParserTest obj's underlying member method code with example usage: obj.test_raises_error_with_offending_line_number() without return types