code: def _check_len_and_values(got: list, expected: list):
      assert len(got) == len(
          expected
      ), f"Expected number of labels: {len(expected)}, but got: {len(got)}"
      assert got == expected
  
file_path: lightning-flash/tests/video/classification/test_data.py
imports: from typing import Union
  import pytest
  import torch
  from flash.core.utilities.imports import _TOPIC_VIDEO_AVAILABLE
  from flash.video.classification.data import VideoClassificationData
label_desc: Use image node_id 3 for calling a global function with example usage: _check_len_and_values(got, expected) without return types