code: def video_suite_helper(
      ops_test_cases,
      test_channel_first=True,
      expand_channels=False,
      rng=None,
  ):
      """
      Generates suite of video test cases for a sequence processing operator.
      The function prepares video input to be passed as a main input for `sequence_suite_helper`.
      For testing operator with different input than the video,
      consider using `sequence_suite_helper` directly.
      ----------
      `ops_test_cases` : (see `sequence_suite_helper`).
      `test_channel_first` : bool
          If True, the "FCHW" layout is tested.
      `expand_channels` : bool
          If True, for the "FCHW" layout the first two (and not just one) dims are expanded,
          and "CFHW" layout is tested. Requires `test_channel_first` to be True.
      """
      rng = rng or random.Random(42)
      expandable_extents = "FC" if expand_channels else "F"
      layouts = ["FHWC"]
      if not test_channel_first:
          assert not expand_channels
      else:
          layouts.append("FCHW")
          if expand_channels:
              layouts.append("CFHW")
  
      def input_data_desc(layout, input_data):
          num_expand = get_layout_prefix_len(layout, expandable_extents)
          return ArgData(
              desc=ArgDesc(0, layout[:num_expand], "", layout),
              data=input_data,
          )
  
      input_cases = [
          input_data_desc(input_layout, input_data)
          for input_layout in layouts
          for input_data in get_video_input_cases(input_layout, rng)
      ]
      yield from sequence_suite_helper(rng, input_cases, ops_test_cases)
  
imports: import os
  import random
  import numpy
  from typing import List, Union, Callable, Optional
  from dataclasses import dataclass, field
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  from nvidia.dali import types
  import nvidia.dali.tensors
  from test_utils import get_dali_extra_path, check_batch
label_desc: Use image node_id 17 for calling a global function with example usage: video_suite_helper(ops_test_cases, test_channel_first, expand_channels, rng) and returns: ArgData