code: def validate_video_collection(sample_collection):
      """Validates that the provided samples are a video
      :class:`fiftyone.core.collections.SampleCollection`.
  
      Args:
          sample_collection: a sample collection
  
      Raises:
          ValueError: if ``samples`` is not a video
          :class:`fiftyone.core.collections.SampleCollection`
      """
      validate_collection(sample_collection)
  
      if sample_collection.media_type == fom.GROUP:
          raise fom.SelectGroupSlicesError(fom.VIDEO)
  
      if sample_collection.media_type != fom.VIDEO:
          raise ValueError(
              "Expected collection to have media type %s; found %s"
              % (fom.VIDEO, sample_collection.media_type)
          )
  
file_path: fiftyone/fiftyone/core/validation.py
imports: import eta.core.utils
  import fiftyone.core.media
  import fiftyone.core.utils
label_desc: Use image node_id 5 for calling a global function with example usage: validate_video_collection(sample_collection) without return types