code: def test_class_that_inherits_an_exception_but_is_in_the_testing_rst_is_not_flagged(
      capsys, error_type
  ) -> None:
      content = TEST_CODE.format(
          custom_name=CUSTOM_EXCEPTION__IN_TESTING_RST,
          error_type=error_type,
      )
      validate_exception_and_warning_placement(
          PATH, content, ERRORS_IN_TESTING_RST
      )
  
imports: import pytest
  from scripts.validate_exception_location import ERROR_MESSAGE, validate_exception_and_warning_placement
label_desc: Use image node_id 3 for calling a global function with example usage: test_class_that_inherits_an_exception_but_is_in_the_testing_rst_is_not_flagged(capsys, error_type) without return types