code: def test_complex_transform_serialization():
      stream = slc.Stream(
          [
              slt.Flip(axis=1, p=0.5),
              slc.SelectiveStream(
                  [
                      slt.Rotate(
                          angle_range=(-45, -45), p=1, padding="r"
                      ),
                      slt.Rotate90(1, p=1),
                      slt.Rotate(
                          angle_range=(45, 45), p=1, padding="r"
                      ),
                  ]
              ),
              slt.Crop((350, 350)),
              slc.SelectiveStream(
                  [
                      slt.GammaCorrection(gamma_range=0.5, p=1),
                      slt.Noise(gain_range=0.1, p=1),
                      slt.Blur(),
                  ],
                  n=3,
              ),
              slt.Projection(
                  affine_transforms=slc.Stream(
                      [
                          slt.Rotate(angle_range=(-45, 45), p=1),
                          slt.Scale(
                              range_x=(0.8, 1.5),
                              range_y=(0.8, 1.5),
                              p=1,
                              same=False,
                          ),
                      ]
                  ),
                  v_range=(1e-4, 1e-3),
                  p=1,
              ),
              slc.SelectiveStream(
                  [
                      slt.CutOut(40, p=1),
                      slt.CutOut(30, p=1),
                      slt.CutOut(20, p=1),
                      slt.CutOut(40, p=1),
                      slc.Stream(),
                      slc.Stream(),
                      slc.Stream(),
                  ],
                  n=3,
              ),
          ]
      )
  
      assert (
          slu.from_yaml(stream.to_yaml()).to_yaml()
          == slu.from_yaml(stream.to_yaml()).to_yaml()
      )
  
file_path: solt/tests/test_utils.py
imports: import solt.utils
  import solt.transforms
  import solt.core
  import pytest
  import json
  import pathlib
  import yaml
label_desc: Use image node_id 12 for calling a global function with example usage: test_complex_transform_serialization() without return types