code: def test_random_apply_prob_out_of_range_check(self):
      test_probabilities = {
          0.0: True,
          0.5: True,
          1.0: True,
          -0.01: False,
          1.01: False,
      }
  
      for given_probability, is_valid in test_probabilities.items():
          if not is_valid:
              self.assertRaises(
                  AssertionError,
                  T.RandomApply,
                  None,
                  prob=given_probability,
              )
          else:
              T.RandomApply(T.NoOpTransform(), prob=given_probability)
  
imports: import logging
  import numpy
  import unittest
  from unittest import mock
  import torch
  from PIL import Image, ImageOps
  from torch.nn import functional
  from detectron2.config import get_cfg
  from detectron2.data import detection_utils
  from detectron2.data import transforms
  from detectron2.utils.logger import setup_logger
label_desc: Use image node_id 6 for calling the TestTransforms obj's underlying member method code with example usage: obj.test_random_apply_prob_out_of_range_check() without return types