class_docstr: TempCopy is a class that you can use as a context manager to transfer files
  into the local directory with either
  
  - a name specified by you, or
  - an autogenerated name.
  
  Supply a dictionary mapping your files => your requested filename (or None).
  When used as a context manager, TempCopy will
  
  - copy data from every source to every destination
  - return a dictionary of the source you provided => the destination's path in
    the local directory.
  
  The temporary files will live inside the current directory where python's
  being executed for the duration of TempCopy's scope.
  
  We did NOT use a tmp directory here because the changing UUID name
  invalidates the docker image each time a new temp path / directory is
  generated.
  
  mapping: dict mapping from optional src to optional destination filename. The
           source should be a relative or absolute path on the local machine.
           The destination should be a current-directory-local path, NOT an
           absolute path. If a key is None, nothing will happen.
  
  Returns:
  dict of each non-None key in mapping => the destination's relative path in
  the local directory.
docstr: Entrypoint for the context manager. Performs the side effect of writing out
  the contents of every file specified as a key of self._mapping over into
  temporary files in the current working directory (at the time of the
  context manager's activation).
docstr_tok: ["Entrypoint","for","the","context","manager",".","Performs","the","side","effect","of","writing","out","the","contents","of","every","file","specified","as","a","key","of","self._mapping","over","into","temporary","files","in","the","current","working","directory","(","at","the","time","of","the","context","manager","'s","activation",")","."]
code: def __enter__(self) -> Dict[str, str]:
      """Entrypoint for the context manager. Performs the side effect of writing out
      the contents of every file specified as a key of self._mapping over into
      temporary files in the current working directory (at the time of the
      context manager's activation).
  
      """
      current_dir = os.getcwd()
      mapping = {**self._mapping}
  
      to_write = self._expand(current_dir, mapping)
  
      for src, dst in to_write.items():
          shutil.copy2(src, dst)
  
      self._written = to_write
  
      return mapping
  
imports: import io
  import os
  import shutil
  import socket
  import subprocess
  import sys
  import time
  import uuid
  from itertools import chain
  from typing import Dict, List, NamedTuple, Optional, Tuple
  from blessings import Terminal
label_desc: Use image node_id 6 for calling the TempCopy obj's underlying member method code with example usage: obj.__enter__() and returns: mapping