code: def test_video():
      def small_angle(sample_desc):
          return np.array(
              sample_desc.rng.uniform(-44.0, 44.0), dtype=np.float32
          )
  
      def random_angle(sample_desc):
          return np.array(
              sample_desc.rng.uniform(-180.0, 180.0), dtype=np.float32
          )
  
      def random_output(sample_desc):
          return np.array(
              [sample_desc.rng.randint(300, 400), rng.randint(300, 400)]
          )
  
      video_test_cases = [
          (dali.fn.rotate, {"angle": 45.0}, []),
          (dali.fn.rotate, {}, [ArgCb("angle", small_angle, False)]),
          (dali.fn.rotate, {}, [ArgCb("angle", random_angle, False)]),
          (
              dali.fn.rotate,
              {},
              RotatePerFrameParamsProvider(
                  [ArgCb("angle", small_angle, True)]
              ),
          ),
          (
              dali.fn.rotate,
              {},
              RotatePerFrameParamsProvider(
                  [ArgCb("angle", random_angle, True)]
              ),
          ),
          (
              dali.fn.rotate,
              {},
              [
                  ArgCb("angle", small_angle, True),
                  ArgCb("size", random_output, False),
              ],
          ),
      ]
  
      rng = random.Random(42)
      video_cases = get_video_input_cases(
          "FHWC", rng, larger_shape=(512, 287)
      )
      input_cases = [
          ArgData(ArgDesc(0, "F", "", "FHWC"), input_data)
          for input_data in video_cases
      ]
      yield from sequence_suite_helper(
          rng, input_cases, video_test_cases
      )
  
imports: import cv2
  import numpy
  import math
  import os
  import random
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import nvidia.dali
  from test_utils import compare_pipelines
  from sequences_test_utils import ArgData, ArgDesc, ArgCb, ParamsProvider, get_video_input_cases, sequence_suite_helper
label_desc: Use image node_id 15 for calling a global function with example usage: test_video() and returns: np, np, np