class_docstr: Exception mock to test retryable exceptions.
class_docstr_tok: ["Exception","mock","to","test","retryable","exceptions","."]
code: def __init__(self, msg, code=grpc.StatusCode.INTERNAL):
      self.msg = msg
      self._code = 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 1 to create a new TestException object from inherited base classes: grpc, grpc with example: obj = TestException(msg, code)