code: def test_wrong_layouts_sequence_rearrange():
      shape = [5, 1]
      new_order = [0, 2, 1, 3, 4]
      per_sample = False
      for dev in ["cpu", "gpu"]:
          for layout in ["HF", "HW"]:
              yield raises(
                  RuntimeError,
                  glob=(
                      "Expected sequence as the input, where outermost dimension represents"
                      ' frames dimension `F`, got data with layout = "H[WF]"'
                  ),
              )(
                  check_fail_sequence_rearrange
              ), 5, shape, new_order, per_sample, dev, layout
  
file_path: DALI/dali/test/python/operator_2/test_sequence_rearrange.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.fn
  import numpy
  from nose_utils import raises
label_desc: Use image node_id 10 for calling a global function with example usage: test_wrong_layouts_sequence_rearrange() without return types