code: def model_device(model: nn.Module):
      """Returns the device the first model parameter is stored.
  
      Can be wrong if different parts of the model are in different devices.
      """
      return next(iter(model.parameters())).device
  
file_path: icevision/icevision/utils/torch_utils.py
imports: from icevision.imports import *
label_desc: Use image node_id 8 for calling a global function with example usage: model_device(model) and returns: next