code: def global_device():
      """Returns the global device that torch.Tensors should be placed on.
  
      Note: The global device is set by using the function
          `garage.torch._functions.set_gpu_mode.`
          If this functions is never called
          `garage.torch._functions.device()` returns None.
  
      Returns:
          `torch.Device`: The global device that newly created torch.Tensors
              should be placed on.
  
      """
      # pylint: disable=global-statement
      global _DEVICE
      return _DEVICE
  
imports: import copy
  import math
  import warnings
  import torch
  from torch import nn
  import torch.nn.functional
label_desc: Use image node_id 15 for calling a global function with example usage: global_device() and returns: _DEVICE