class_docstr: We could not read a file with the given encoding
class_docstr_tok: ["We","could","not","read","a","file","with","the","given","encoding"]
code: def __init__(self, path: "StrPath", encoding: str):
      self.encoding = encoding
      super().__init__(path, f"is not valid {encoding}")
  
imports: import os
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, Any, Callable, ContextManager, Dict, Optional, Protocol, TextIO, Union
  from funcy import reraise
  from dvc.exceptions import DvcException
label_desc: Use image node_id 1 to create a new EncodingError object from inherited base classes: ParseError with example: obj = EncodingError(path, encoding)