def METHOD_NAME(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