code: def __init__(self, title, underline_char, options, entries):
      self.title = title
      self.underline_char = underline_char
      if (
          self.underline_char is not None
          and len(self.underline_char) != 1
      ):
          raise ValueError(
              f"Expected only 1 character for `underline_char`, got {self.underline_char}."
          )
      if not isinstance(options, list):
          self.options = [options]
      else:
          self.options = options
      self.entries = entries
      self.entries = [_parse_entry(entry) for entry in entries]
  
file_path: DALI/docs/doc_index.py
imports: from pathlib import Path
label_desc: Use image node_id 1 to create a new Doc object  with example: obj = Doc(title, underline_char, options, entries)