class_docstr: A portal for a tensor.
class_docstr_tok: ["A","portal","for","a","tensor","."]
code: def __init__(
      self, tensor: Optional[Tensor], tensor_life: int, index: int
  ) -> None:
      self.put_tensor(tensor, tensor_life)
      self.grad: Optional[Tensor] = None
      self.__index = index
      self.ns_name: Optional[Tuple[Namespace, str]]
      self.pipeline: Any
  
imports: from typing import Any, List, Optional, Tuple
  import torch
  from torch import Tensor
  from .None import Namespace
  from ..copy import Context
  from ..copy import Copy
  from ..phony import get_phony
  from ..stream import AbstractStream, get_device
label_desc: Use image node_id 1 to create a new Portal object  with example: obj = Portal(tensor, tensor_life, index)