code: def _format_stacktrace(self, indent=4, head=10):
      if not self.stacktrace:
          return ""
      return "\n".join(
          (
              "%s%s" % ((indent * " " if i > 0 else ""), l.strip())
              for i, l in enumerate(self.stacktrace[:head])
          )
      )
  
file_path: h2o-3/h2o-py/h2o/schemas/error.py
imports: from h2o.utils.compatibility import *
  from .schema import H2OSchema
label_desc: Use image node_id 5 for calling the H2OErrorV3 obj's underlying member method code with example usage: obj._format_stacktrace(indent, head) and returns: str, str