class_docstr: A `Token` represents one token position in a `Sequence`, which has the
  chosen `text` as well as the top probabilities under the model.
  
  Note: (text, logprob) could exist or not exist in `top_logprobs`.
class_docstr_tok: ["A","`","Token","`","represents","one","token","position","in","a","`","Sequence","`",",","which","has","the","chosen","`","text","`","as","well","as","the","top","probabilities","under","the","model",".","Note",":","(","text",",","logprob",")","could","exist","or","not","exist","in","`","top_logprobs","`","."]
code: def render_lines(self) -> List[str]:
      top_logprobs_entries = sorted(
          self.top_logprobs.items(), key=lambda entry: -entry[1]
      )
      top_logprobs_str = (
          "{"
          + ", ".join(
              f"{format_text(text)}: {logprob}"
              for text, logprob in top_logprobs_entries
          )
          + "}"
      )
      return [
          f"{format_text(self.text)} logprob={self.logprob} top_logprobs={top_logprobs_str}",
      ]
  
file_path: H2O/h2o_hf/helm/src/helm/common/request.py
imports: from dataclasses import dataclass, field
  from typing import List, Optional, Dict
  from helm.proxy.models import Model, get_model
  from .general import indent_lines, format_text
label_desc: Use image node_id 1 for calling the Token obj's underlying member method code with example usage: obj.render_lines() and returns: list