code: def test_force_apply():
      """
      Unit test for https://github.com/albumentations-team/albumentations/issues/189
      """
      aug = A.Compose(
          [
              A.OneOrOther(
                  A.Compose(
                      [
                          A.RandomSizedCrop(
                              min_max_height=(256, 1025),
                              height=512,
                              width=512,
                              p=1,
                          ),
                          A.OneOf(
                              [
                                  A.RandomSizedCrop(
                                      min_max_height=(256, 512),
                                      height=384,
                                      width=384,
                                      p=0.5,
                                  ),
                                  A.RandomSizedCrop(
                                      min_max_height=(256, 512),
                                      height=512,
                                      width=512,
                                      p=0.5,
                                  ),
                              ]
                          ),
                      ]
                  ),
                  A.Compose(
                      [
                          A.RandomSizedCrop(
                              min_max_height=(256, 1025),
                              height=256,
                              width=256,
                              p=1,
                          ),
                          A.OneOf(
                              [
                                  A.HueSaturationValue(p=0.5),
                                  A.RGBShift(p=0.7),
                              ],
                              p=1,
                          ),
                      ]
                  ),
              ),
              A.HorizontalFlip(p=1),
              A.RandomBrightnessContrast(p=0.5),
          ]
      )
  
      res = aug(image=np.zeros((1248, 1248, 3), dtype=np.uint8))
      assert res["image"].shape[0] in (256, 384, 512)
      assert res["image"].shape[1] in (256, 384, 512)
  
imports: import random
  from functools import partial
  import cv2
  import numpy
  import pytest
  import albumentations
  import albumentations.augmentations.functional
  import albumentations.augmentations.geometric.functional
  from albumentations.augmentations.blur.functional import gaussian_blur
  from .utils import get_dual_transforms, get_image_only_transforms, get_transforms
label_desc: Use image node_id 14 for calling a global function with example usage: test_force_apply() without return types