code: def name_to_sphinx(self):
      if self.name.endswith(".py"):
          return str(Path(self.name).with_suffix(".rst"))
      return self.name
  
file_path: DALI/docs/doc_index.py
imports: from pathlib import Path
label_desc: Use image node_id 2 for calling the DocEntry obj's underlying member method code with example usage: obj.name_to_sphinx() and returns: self, str