docstr: This function should be implemented to instantiate a DetectionModel out of an already loaded model
  Args:
      model: Any
          Loaded model
docstr_tok: ["This","function","should","be","implemented","to","instantiate","a","DetectionModel","out","of","an","already","loaded","model","Args",":","model",":","Any","Loaded","model"]
code: def set_model(self, model: Any, **kwargs):
      """
      This function should be implemented to instantiate a DetectionModel out of an already loaded model
      Args:
          model: Any
              Loaded model
      """
      raise NotImplementedError()
  
file_path: sahi/sahi/models/base.py
imports: from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  from sahi.utils.import_utils import is_available
  from sahi.utils.torch import select_device
label_desc: Use image node_id 4 for calling the DetectionModel obj's underlying member method code with example usage: obj.set_model(model) without return types