code: def test_compute_video_metadata(tmpdir):
      video_path = os.path.join(tmpdir, "video.mp4")
      dataset_dir = os.path.join(tmpdir, "videos")
  
      _height = 720
      _width = 1280
  
      _write_video(
          video_path, fps=5, size=(_height, _width), num_frames=30
      )
      dataset = _make_dataset(video_path, dataset_dir, num_samples=10)
  
      sample = dataset.first()
      assert sample.metadata is None
  
      dataset.compute_metadata()
      assert sample.metadata.frame_height == _height
      assert sample.metadata.frame_width == _width
  
      dataset.compute_metadata(overwrite=True)
      assert sample.metadata.frame_height == _height
      assert sample.metadata.frame_width == _width
  
      dataset.clear_sample_field("metadata")
      assert sample.metadata is None
  
      dataset.compute_metadata(num_workers=1)
      assert sample.metadata.frame_height == _height
      assert sample.metadata.frame_width == _width
  
file_path: fiftyone/tests/intensive/utils_tests.py
imports: import os
  import numpy
  import pytest
  import eta.core.utils
  import eta.core.video
  import fiftyone
  import fiftyone.utils.image
  import fiftyone.utils.video
label_desc: Use image node_id 6 for calling a global function with example usage: test_compute_video_metadata(tmpdir) without return types