code: def test_random_flip_vertical(self):
      run_training_check = (
          False if backend.backend() == "numpy" else True
      )
      utils.set_random_seed(0)
      # Test 3D input: shape (2*1*3)
      self.run_layer_test(
          MockedRandomFlip,
          init_kwargs={
              "mode": "vertical",
              "seed": 42,
          },
          input_data=np.asarray([[[2, 3, 4]], [[5, 6, 7]]]),
          expected_output=backend.convert_to_tensor(
              [[[5, 6, 7]], [[2, 3, 4]]]
          ),
          supports_masking=False,
          run_training_check=run_training_check,
      )
      # Test 4D input: shape (2*2*1*3)
      self.run_layer_test(
          MockedRandomFlip,
          init_kwargs={
              "mode": "vertical",
              "seed": 42,
          },
          input_data=np.asarray(
              [
                  [
                      [[2, 3, 4]],
                      [[5, 6, 7]],
                  ],
                  [
                      [[2, 3, 4]],
                      [[5, 6, 7]],
                  ],
              ]
          ),
          expected_output=backend.convert_to_tensor(
              [
                  [[[5, 6, 7]], [[2, 3, 4]]],
                  [[[5, 6, 7]], [[2, 3, 4]]],
              ]
          ),
          supports_masking=False,
          run_training_check=run_training_check,
      )
  
file_path: keras/keras/layers/preprocessing/random_flip_test.py
imports: import unittest.mock
  import numpy
  from absl.testing import parameterized
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import testing
  from keras import utils
label_desc: Use image node_id 3 for calling the RandomFlipTest obj's underlying member method code with example usage: obj.test_random_flip_vertical() without return types