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):
      if self.msg:
          val = self.msg
          if isinstance(val, bytes):
              val = val.decode("UTF-8", errors="replace")
          return val
      return "<%s instance>" % (self.__class__.__name__,)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  from packaging.version import Version
label_desc: Use image node_id 2 for calling the OutcomeException obj's underlying member method code with example usage: obj.__repr__() and returns: unknown, val