code: def model_device(model):
      return first(model.parameters()).device
  
file_path: icevision/icevision/utils/torch_utils.py
imports: from icevision.imports import *
label_desc: Use image node_id 4 for calling a global function with example usage: model_device(model) and returns: first