code: def inference(
      input_video: str,
      model: str,
      track_points: str,
      model_threshold: str,
      classes: List,
  ):
      coord_transformations = None
      paths_drawer = None
      fix_paths = True
      model = YOLO(model)
      video = Video(input_path=input_video)
  
      transformations_getter = HomographyTransformationGetter()
  
      motion_estimator = MotionEstimator(
          max_points=500,
          min_distance=7,
          transformations_getter=transformations_getter,
      )
  
      distance_function = create_normalized_mean_euclidean_distance(
          video.input_height, video.input_width
      )
      distance_threshold = DISTANCE_THRESHOLD_CENTROID
  
      tracker = Tracker(
          distance_function=distance_function,
          distance_threshold=distance_threshold,
      )
  
      paths_drawer = Paths(center, attenuation=0.01)
  
      if fix_paths:
          paths_drawer = AbsolutePaths(max_history=40, thickness=2)
  
      for frame in video:
          yolo_detections = model(
              frame,
              conf_threshold=model_threshold,
              iou_threshold=0.45,
              image_size=720,
              classes=classes,
          )
  
          mask = np.ones(frame.shape[:2], frame.dtype)
  
          coord_transformations = motion_estimator.update(frame, mask)
  
          detections = yolo_detections_to_norfair_detections(
              yolo_detections, track_points=track_points
          )
  
          tracked_objects = tracker.update(
              detections=detections,
              coord_transformations=coord_transformations,
          )
  
          frame = draw(
              paths_drawer,
              track_points,
              frame,
              detections,
              tracked_objects,
              coord_transformations,
              fix_paths,
          )
          video.write(frame)
  
file_path: norfair/demos/colab/demo.py
imports: import argparse
  from typing import List
  import numpy
  from draw import center, draw
  from yolo import YOLO, yolo_detections_to_norfair_detections
  from norfair import AbsolutePaths, Paths, Tracker, Video
  from norfair.camera_motion import HomographyTransformationGetter, MotionEstimator
  from norfair.distances import create_normalized_mean_euclidean_distance
label_desc: Use image node_id 1 for calling a global function with example usage: inference(input_video, model, track_points, model_threshold, classes) without return types