code: def assert_bad_kernel_launch(
      self,
      number_of_errors: int,
      stream: StreamId,
      read_only: List[DataPtr] = None,
      read_write: List[DataPtr] = None,
  ) -> None:
      errors = self.kernel_launch(stream, read_only, read_write)
      self.assertEqual(len(errors), number_of_errors)
  
imports: import sys
  import textwrap
  import traceback
  from typing import List
  import torch
  import torch.cuda._sanitizer
  from torch.cuda._sanitizer import StreamId, DataPtr, EventId
  from torch.testing._internal.common_utils import TestCase, run_tests, NoTest, TEST_CUDA
label_desc: Use image node_id 4 for calling the TestEventHandler obj's underlying member method code with example usage: obj.assert_bad_kernel_launch(number_of_errors, stream, read_only, read_write) without return types