code: def get_module_device(module):
      return next(module.parameters()).device
  
imports: import copy
  import random
  from functools import wraps, partial
  import torch
  from torch import nn, einsum
  import torch.nn.functional
  from torchvision import transforms
  from einops import rearrange, reduce, repeat
label_desc: Use image node_id 4 for calling a global function with example usage: get_module_device(module) and returns: next