class_docstr: Objects implementing this interface are allowed to be transferred
  from one CUDA stream to another.
  torch.Tensor implements this interface.
class_docstr_tok: ["Objects","implementing","this","interface","are","allowed","to","be","transferred","from","one","CUDA","stream","to","another",".","torch.Tensor","implements","this","interface","."]
docstr: See https://pytorch.org/docs/stable/generated/torch.Tensor.record_stream.html
docstr_tok: ["See","https",":","\/\/pytorch.org\/docs\/stable\/generated\/torch.Tensor.record_stream.html"]
code: def record_stream(self, stream: torch.cuda.streams.Stream) -> None:
      """
      See https://pytorch.org/docs/stable/generated/torch.Tensor.record_stream.html
      """
      ...
  
imports: import logging
  import os
  import shutil
  import subprocess
  from collections import defaultdict
  from dataclasses import fields, is_dataclass
  from typing import Any, Dict, Mapping, TypeVar
  import torch
  from torchtnt.utils.version import is_torch_version_geq_1_12
  from typing_extensions import Protocol, runtime_checkable, TypedDict
label_desc: Use image node_id 1 for calling the _MultistreamableData obj's underlying member method code with example usage: obj.record_stream(stream) without return types