code: def auto_device_config(device: None):
      return (
          torch.device("cuda" if torch.cuda.is_available() else "cpu")
          if device is None
          else device
      )
  
file_path: icevision/icevision/utils/torch_utils.py
imports: from icevision.imports import *
label_desc: Use image node_id 5 for calling a global function with example usage: auto_device_config(device) and returns: unknown