code: def test_cmn_crop_sequence_length():
      # Tests cropping along the sequence dimension as if it was depth
      input_layout = "FHWC"
      output_layouts = ["FHWC", "FCHW"]
      output_layouts = {
          "FHWC": ["FHWC", "FCHW"],
      }
  
      input_shapes = {
          "FHWC": [(10, 60, 80, 3)],
      }
  
      mean = [
          127,
      ]
      std = [
          127,
      ]
      should_pad = False
      mirror_probability = 0.5
  
      for cmn_op, device in op_dev_pairs:
          for batch_size in [8]:
              for dtype in [types.FLOAT]:
                  for input_shape in input_shapes[input_layout]:
                      assert len(input_layout) == len(input_shape)
                      for output_layout in output_layouts[input_layout]:
                          yield (
                              check_cmn_crop_sequence_length,
                              cmn_op,
                              device,
                              batch_size,
                              dtype,
                              input_layout,
                              input_shape,
                              output_layout,
                              mirror_probability,
                              mean,
                              std,
                              should_pad,
                          )
  
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  from functools import partial
  from nvidia.dali import pipeline_def
  from nvidia.dali.pipeline import Pipeline
  from nose2.tools import params
  from nose_utils import assert_raises
  from nose_utils import raises
  from test_slice import check_slice_output, abs_slice_start_and_end
  from test_utils import RandomDataIterator
  from test_utils import as_array
  from test_utils import compare_pipelines, dali_type_to_np
  from test_utils import get_dali_extra_path
  import itertools
label_desc: Use image node_id 10 for calling a global function with example usage: test_cmn_crop_sequence_length() without return types