code: def test_transform_pipeline_serialization_with_bboxes(
      seed, image, bboxes, bbox_format, labels
  ):
      aug = A.Compose(
          [
              A.OneOrOther(
                  A.Compose(
                      [
                          A.RandomRotate90(),
                          A.OneOf(
                              [
                                  A.HorizontalFlip(p=0.5),
                                  A.VerticalFlip(p=0.5),
                              ]
                          ),
                      ]
                  ),
                  A.Compose(
                      [
                          A.Rotate(p=0.5),
                          A.OneOf(
                              [
                                  A.HueSaturationValue(p=0.5),
                                  A.RGBShift(p=0.7),
                              ],
                              p=1,
                          ),
                      ]
                  ),
              ),
              A.SomeOf(
                  [
                      A.HorizontalFlip(p=1),
                      A.Transpose(p=1),
                      A.HueSaturationValue(p=0.5),
                      A.RandomBrightnessContrast(p=0.5),
                  ],
                  n=5,
              ),
          ],
          bbox_params={
              "format": bbox_format,
              "label_fields": ["labels"],
          },
      )
      serialized_aug = A.to_dict(aug)
      deserialized_aug = A.from_dict(serialized_aug)
      set_seed(seed)
      aug_data = aug(image=image, bboxes=bboxes, labels=labels)
      set_seed(seed)
      deserialized_aug_data = deserialized_aug(
          image=image, bboxes=bboxes, labels=labels
      )
      assert np.array_equal(
          aug_data["image"], deserialized_aug_data["image"]
      )
      assert np.array_equal(
          aug_data["bboxes"], deserialized_aug_data["bboxes"]
      )
  
imports: import json
  import os
  import random
  from unittest.mock import patch
  import cv2
  import numpy
  import pytest
  import albumentations
  import albumentations.augmentations.functional
  import albumentations.augmentations.geometric.functional
  from albumentations.core.serialization import SERIALIZABLE_REGISTRY, shorten_class_name
  from albumentations.core.transforms_interface import ImageOnlyTransform
  from .conftest import skipif_no_torch
  from .utils import OpenMock, check_all_augs_exists, get_image_only_transforms, get_transforms, set_seed
label_desc: Use image node_id 9 for calling a global function with example usage: test_transform_pipeline_serialization_with_bboxes(seed, image, bboxes, bbox_format, labels) without return types