code: def od_library_change(self, change):
      lib_name = change.new
  
      if self.task == "object_detection":
          if lib_name == "Torchvision":
              lib_type = models.torchvision
              model_list = ["faster_rcnn", "retinanet"]
  
          if lib_name == "MMDetection":
              lib_type = models.mmdet.models
              model_list = [
                  "retinanet",
                  "faster_rcnn",
                  "fcos",
                  "sparse_rcnn",
              ]
  
          if lib_name == "Ross Wightman":
              lib_type = models.ross
              model_list = ["efficientdet"]
  
      elif self.task == "mask":
          if lib_name == "Torchvision":
              lib_type = models.torchvision
              model_list = ["mask_rcnn"]
  
          if lib_name == "MMDetection":
              lib_type = models.mmdet.models
              model_list = ["mask_rcnn"]
  
      elif self.task == "keypoints":
          if lib_name == "Torchvision":
              lib_type = models.torchvision
              model_list = ["keypoint_rcnn"]
  
      self.lib_type = lib_type
      self.model_list = model_list
  
      self.models_available.options = model_list
  
file_path: icevision/icevision/widgets/model_choice_ui.py
imports: from icevision import models
  import ipywidgets
  from IPython.display import display
label_desc: Use image node_id 5 for calling the ModelChoiceUI obj's underlying member method code with example usage: obj.od_library_change(change) without return types