code: def test_detect_video():
      path = os.path.dirname(__file__)
      input_video = os.path.join(path, "static/input_video.mp4")
      output_video = os.path.join(path, "static/output_video.avi")
  
      model = get_model()
      detect_video(model, input_video, output_video)
  
      assert os.path.isfile(output_video)
      os.remove(output_video)
  
      # Ensure it works when the model makes no predictions
      model._model.forward = empty_predictor
      detect_video(model, input_video, output_video)
  
      assert os.path.isfile(output_video)
      os.remove(output_video)
  
imports: import os
  from .helpers import get_image, get_model, empty_predictor
  from detecto.visualize import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_detect_video() without return types