code: def _get_current_device_index():
      # current device index
      return _get_device_attr(lambda m: m.current_device())
  
imports: import copyreg
  import functools
  import sys
  import traceback
  import warnings
  from collections import defaultdict
  from typing import Any, DefaultDict, List, Optional
  import torch
label_desc: Use image node_id 32 for calling a global function with example usage: _get_current_device_index() and returns: _get_device_attr