class_docstr: OutcomeException and its subclass instances indicate and contain info
  about test and collection outcomes.
class_docstr_tok: ["OutcomeException","and","its","subclass","instances","indicate","and","contain","info","about","test","and","collection","outcomes","."]
code: def __repr__(self) -> str:
      if self.msg is not None:
          return self.msg
      return f"<{self.__class__.__name__} instance>"
  
imports: import sys
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import NoReturn
  from typing import Optional
  from typing import Protocol
  from typing import Type
  from typing import TypeVar
label_desc: Use image node_id 2 for calling the OutcomeException obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str, self