code: def validate_video_sample(sample):
      """Validates that the sample's media is a video.
  
      Args:
          sample: a :class:`fiftyone.core.sample.Sample`
  
      Raises:
          ValueError if the sample's media is not a video
      """
      if sample.media_type != fom.VIDEO:
          raise ValueError(
              "Expected media type '%s' but found '%s' for filepath '%s'"
              % (fom.VIDEO, sample.media_type, sample.filepath)
          )
  
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 2 for calling a global function with example usage: validate_video_sample(sample) without return types