class_docstr: A `Sequence` is a sequence of tokens.
class_docstr_tok: ["A","`","Sequence","`","is","a","sequence","of","tokens","."]
code: def render_lines(self) -> List[str]:
      result = [
          f"text: {self.text}",
          f"log_prob: {self.logprob}",
          "tokens {",
      ]
      for token in self.tokens:
          result.extend(indent_lines(token.render_lines(), 2))
      result.append("}")
      if self.finish_reason:
          result.append(f"finish_reason: {self.finish_reason}")
      return result
  
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 2 for calling the Sequence obj's underlying member method code with example usage: obj.render_lines() and returns: result