code: def test_raises_error_with_offending_line(self):
      contents = [
          "1 qid:1 2:1000.0",
          "2 qid:1 9:9.9",
          "malformatted line",
      ]
      with self.assertRaisesWithPredicateMatch(
          ParserError, lambda error: error.line == "malformatted line"
      ):
          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 11 for calling the LibSVMRankingParserTest obj's underlying member method code with example usage: obj.test_raises_error_with_offending_line() without return types