class_docstr: Internal class used to parse results from the `SUGGET` command.
  This needs to consume either 1, 2, or 3 values at a time from
  the return value depending on what objects were requested
code: def __init__(
      self, with_scores: bool, with_payloads: bool, ret
  ) -> None:
      self.with_scores = with_scores
      self.with_payloads = with_payloads
  
      if with_scores and with_payloads:
          self.sugsize = 3
          self._scoreidx = 1
          self._payloadidx = 2
      elif with_scores:
          self.sugsize = 2
          self._scoreidx = 1
      elif with_payloads:
          self.sugsize = 2
          self._payloadidx = 1
      else:
          self.sugsize = 1
          self._scoreidx = -1
  
      self._sugs = ret
  
imports: from typing import Optional
  from ._util import to_string
label_desc: Use image node_id 1 to create a new SuggestionParser object  with example: obj = SuggestionParser(with_scores, with_payloads, ret)