class_docstr: Wrapper around os.pipe, that ensures we don't double close any end.
class_docstr_tok: ["Wrapper","around","os.pipe",",","that","ensures","we","do","n't","double","close","any","end","."]
code: def __init__(self) -> None:
      self.read_fd, self.write_fd = os.pipe()
      self._read_closed = False
      self._write_closed = False
  
imports: from __future__ import annotations
  import sys
  import os
  from contextlib import contextmanager
  from typing import ContextManager, Iterator, TextIO, cast
  from ..utils import DummyContext
  from .base import PipeInput
  from .vt100 import Vt100Input
label_desc: Use image node_id 1 to create a new _Pipe object  with example: obj = _Pipe()