class_docstr: An error-collecting object which supports error recovery.
  
  It is intended to be used like a context manager:
  
  >>> with Errors("Top-level error message") as errs:
  >>>     ...
class_docstr_tok: ["An","error-collecting","object","which","supports","error","recovery",".","It","is","intended","to","be","used","like","a","context","manager",":",">",">",">","with","Errors","(","``","Top-level","error","message","''",")","as","errs",":",">",">",">","..."]
docstr: Add an error to the error context, but continue executing.
docstr_tok: ["Add","an","error","to","the","error","context",",","but","continue","executing","."]
code: def addErr(self, msg):
      """
      Add an error to the error context, but continue executing.
      """
      # TODO: instead of immediately concatenating the context in the msg,
      # attach it as metadata and make a decision how to format it later.
      msg_w_ctx = msg
      for c in reversed(self.context):
          msg += "\n\n  * " + "\n    ".join(c.splitlines())
      self.errors.append(msg)
  
imports: import difflib
  import io
  import numpy
  import onnx
  import onnx.helper
  import torch
  import torch.jit
  import torch.onnx
label_desc: Use image node_id 10 for calling the Errors obj's underlying member method code with example usage: obj.addErr(msg) without return types