code: def _to_str_list(self, indent_width: int = 0) -> List[str]:
      codes: List[str] = []
      codes.append(" " * indent_width + self._head + "{")
      for code in self._codes:
          next_indent_width = indent_width + 2
          if isinstance(code, str):
              codes.append(" " * next_indent_width + code)
          elif isinstance(code, CodeBlock):
              codes += code._to_str_list(indent_width=next_indent_width)
          else:
              assert False
      codes.append(" " * indent_width + "}")
      return codes
  
imports: from typing import Any, List
label_desc: Use image node_id 2 for calling the CodeBlock obj's underlying member method code with example usage: obj._to_str_list(indent_width) and returns: codes