class_docstr: A node in a repr tree. May be atomic or a container.
class_docstr_tok: ["A","node","in","a","repr","tree",".","May","be","atomic","or","a","container","."]
docstr: Render the node to a pretty repr.
  
  Args:
      max_width (int, optional): Maximum width of the repr. Defaults to 80.
      indent_size (int, optional): Size of indents. Defaults to 4.
      expand_all (bool, optional): Expand all levels. Defaults to False.
  
  Returns:
      str: A repr string of the original object.
docstr_tok: ["Render","the","node","to","a","pretty","repr",".","Args",":","max_width","(","int",",","optional",")",":","Maximum","width","of","the","repr",".","Defaults","to","80.","indent_size","(","int",",","optional",")",":","Size","of","indents",".","Defaults","to","4.","expand_all","(","bool",",","optional",")",":","Expand","all","levels",".","Defaults","to","False",".","Returns",":","str",":","A","repr","string","of","the","original","object","."]
code: def render(
      self,
      max_width: int = 80,
      indent_size: int = 4,
      expand_all: bool = False,
  ) -> str:
      """Render the node to a pretty repr.
  
      Args:
          max_width (int, optional): Maximum width of the repr. Defaults to 80.
          indent_size (int, optional): Size of indents. Defaults to 4.
          expand_all (bool, optional): Expand all levels. Defaults to False.
  
      Returns:
          str: A repr string of the original object.
      """
      lines = [_Line(node=self, is_root=True)]
      line_no = 0
      while line_no < len(lines):
          line = lines[line_no]
          if line.expandable and not line.expanded:
              if expand_all or not line.check_length(max_width):
                  lines[line_no : line_no + 1] = line.expand(
                      indent_size
                  )
          line_no += 1
  
      repr_str = "\n".join(str(line) for line in lines)
      return repr_str
  
imports: import builtins
  import collections
  import dataclasses
  import inspect
  import os
  import sys
  from array import array
  from collections import Counter, UserDict, UserList, defaultdict, deque
  from dataclasses import dataclass, fields, is_dataclass
  from inspect import isclass
  from itertools import islice
  from types import MappingProxyType
  from typing import TYPE_CHECKING, Any, Callable, DefaultDict, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union
  from rich.repr import RichReprResult
  from .None import get_console
  from ._loop import loop_last
  from ._pick import pick_bool
  from .abc import RichRenderable
  from .cells import cell_len
  from .highlighter import ReprHighlighter
  from .jupyter import JupyterMixin, JupyterRenderable
  from .measure import Measurement
  from .text import Text
label_desc: Use image node_id 4 for calling the Node obj's underlying member method code with example usage: obj.render(max_width, indent_size, expand_all) and returns: repr_str