class_docstr: Raised when LibSVM-formatted contents cannot be parsed correctly.
class_docstr_tok: ["Raised","when","LibSVM-formatted","contents","can","not","be","parsed","correctly","."]
docstr: Initializes the instance.
  
  Args:
    line_number: The line number where the parser error occurred.
    line: The line where the parser error occurred.
    reason: An informative message about the nature of the parser error.
docstr_tok: ["Initializes","the","instance",".","Args",":","line_number",":","The","line","number","where","the","parser","error","occurred",".","line",":","The","line","where","the","parser","error","occurred",".","reason",":","An","informative","message","about","the","nature","of","the","parser","error","."]
code: def __init__(self, line_number: int, line: str, reason: str):
      """Initializes the instance.
  
      Args:
        line_number: The line number where the parser error occurred.
        line: The line where the parser error occurred.
        reason: An informative message about the nature of the parser error.
      """
      super().__init__(
          f"Unable to parse line {line_number} ('{line}'): {reason}"
      )
      self.line_number = line_number
      self.line = line
      self.reason = reason
  
file_path: datasets/tensorflow_datasets/ranking/libsvm_ranking_parser.py
imports: import collections
  import dataclasses
  import re
  from typing import Iterable, List, Mapping, Tuple
  import numpy
label_desc: Use image node_id 1 to create a new ParserError object from inherited base classes: Exception with example: obj = ParserError(line_number, line, reason)