def SendTar(from_fn, to_arcname, header, to_stream):
  tar_stream = ChunkedOutputStream(header, to_stream)
  to_tar = tarfile.open(mode='w|gz', fileobj=tar_stream)
  # The from_fn has already been validated, so this is safe.
  to_tar.add(from_fn, arcname=to_arcname)
  to_tar.close()
Sends a tar to an output stream.
dataset/ETHPy150Open google/lab_device_proxy/lab_device_proxy_client.py/SendTar