code: def current_stream(device: _device_t = None) -> Stream:
      r"""Returns the currently selected :class:`Stream` for a given device.
  
      Args:
          device (torch.device or int, optional): Ignored.
  
      N.B. This function only exists to facilitate device-agnostic code
  
      """
      return _current_stream
  
imports: from contextlib import AbstractContextManager
  from typing import Any, Optional, Union
  import torch
  from ..None import device
  from .None import amp
label_desc: Use image node_id 4 for calling a global function with example usage: current_stream(device) and returns: _current_stream