class_docstr: A print()-providing object that can override the stream output on
  a per-thread basis.
class_docstr_tok: ["A","print","(",")","-providing","object","that","can","override","the","stream","output","on","a","per-thread","basis","."]
code: def __init__(self):
      self._tls = threading.local()
  
imports: import contextlib
  import io
  import random
  import socket
  import subprocess
  import sys
  import threading
  import uuid
  import numpy
label_desc: Use image node_id 1 to create a new _Printer object  with example: obj = _Printer()