code: def __init__(self, tensor: torch.Tensor) -> None:
      self._memory = memoryview(tensor.numpy())
      self._cursor: int = 0
  
file_path: vision/torchvision/prototype/utils/_internal.py
imports: import collections.abc
  import difflib
  import io
  import mmap
  import platform
  from typing import BinaryIO, Callable, Collection, Sequence, TypeVar, Union
  import numpy
  import torch
  from torchvision._utils import sequence_to_str
label_desc: Use image node_id 1 to create a new ReadOnlyTensorBuffer object  with example: obj = ReadOnlyTensorBuffer(tensor)