code: def testContains(self):
      with self.cached_session():
          shape = (3, 5, 7)
          target = (2, 3, 4)
          value = np.random.randint(1000000, size=shape)
          value_set = set(
              tuple(value[i : i + 2, j : j + 3, k : k + 4].ravel())
              for i in range(2)
              for j in range(3)
              for k in range(4)
          )
          crop = random_crop_ops.random_crop(value, size=target)
          for _ in range(20):
              y = self.evaluate(crop)
              self.assertAllEqual(y.shape, target)
              self.assertTrue(tuple(y.ravel()) in value_set)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/random/random_crop_test.py
imports: import numpy
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import random_crop_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the RandomCropTest obj's underlying member method code with example usage: obj.testContains() without return types