docstr: Sets the underlying ONNX model.
  
  Args:
      model: Any
          A ONNX model
docstr_tok: ["Sets","the","underlying","ONNX","model",".","Args",":","model",":","Any","A","ONNX","model"]
code: def set_model(self, model: Any) -> None:
      """
      Sets the underlying ONNX model.
  
      Args:
          model: Any
              A ONNX model
      """
  
      self.model = model
  
      # set category_mapping
      if not self.category_mapping:
          raise TypeError("Category mapping values are required")
  
imports: import logging
  from typing import Any, Dict, List, Optional, Tuple
  import cv2
  import numpy
  import torch
  from sahi.models.base import DetectionModel
  from sahi.prediction import ObjectPrediction
  from sahi.utils.compatibility import fix_full_shape_list, fix_shift_amount_list
  from sahi.utils.import_utils import check_requirements
  from sahi.utils.yolov8onnx import non_max_supression, xywh2xyxy
label_desc: Use image node_id 4 for calling the Yolov8OnnxDetectionModel obj's underlying member method code with example usage: obj.set_model(model) without return types