class_docstr: This provides Inference Engine for pre-trained segmentation model for Tool Tracking.
class_docstr_tok: ["This","provides","Inference","Engine","for","pre-trained","segmentation","model","for","Tool","Tracking","."]
code: def __init__(self, path: str, conf: Dict[str, str], **kwargs):
      super().__init__(
          path,
          conf,
          type=InferType.SEGMENTATION,
          load_strict=False,
          **kwargs,
      )
  
      # Override Labels
      self.labels = {"Tool": 1}
      self.label_colors = {"Tool": (255, 0, 0)}
  
file_path: MONAILabel/sample-apps/endoscopy/lib/infers/tooltracking.py
imports: import logging
  from typing import Any, Callable, Dict, Sequence
  from monai.transforms import SqueezeDimd
  from monailabel.interfaces.tasks.infer_v2 import InferType
  from monailabel.tasks.infer.bundle import BundleInferTask
  from monailabel.transform.post import FindContoursd
  from monailabel.transform.writer import PolygonWriter
label_desc: Use image node_id 1 to create a new ToolTracking object from inherited base classes: BundleInferTask with example: obj = ToolTracking(path, conf)