class_docstr: Exception mock to test retryable exceptions.
class_docstr_tok: ["Exception","mock","to","test","retryable","exceptions","."]
code: def code(self):
      return self._code
  
imports: import unittest
  import uuid
  from collections.abc import Generator
  from typing import Optional, Any
  from pyspark.testing.connectutils import should_test_connect, connect_requirement_message
  from pyspark.testing.utils import eventually
label_desc: Use image node_id 2 for calling the TestException obj's underlying member method code with example usage: obj.code() and returns: self