code: def __init__(
      self, done_future: Any = None, encoding: Optional[str] = None
  ) -> None:
      StdOutErrCapture.__init__(
          self, done_future=done_future, encoding=encoding
      )
      GeneratorMixIn.__init__(self)
  
imports: from __future__ import annotations
  import sys
  from queue import Queue
  from typing import Any, Optional
  from datalad.runner.coreprotocols import NoCapture, StdOutErrCapture
  from datalad.runner.nonasyncrunner import _ResultGenerator, run_command
  from datalad.runner.protocol import GeneratorMixIn
  from datalad.tests.utils_pytest import assert_equal, assert_raises
  from ..exception import CommandError
  from ..runner import WitlessRunner
  from .utils import py2cmd
label_desc: Use image node_id 1 to create a new TestProtocol object from inherited base classes: GeneratorMixIn, StdOutErrCapture with example: obj = TestProtocol(done_future, encoding)