code: def __init__(self, new_target):
      self._new_target = new_target
      # We use a list of old targets to make this CM re-entrant
      self._old_targets = []
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 to create a new _RedirectStream object from inherited base classes: object with example: obj = _RedirectStream(new_target)