class_docstr: Helper class responsible for TF-Hub module download and extraction.
class_docstr_tok: ["Helper","class","responsible","for","TF-Hub","module","download","and","extraction","."]
docstr: Prints a message about download progress either to the console or TF log.
  
  Args:
    msg: Message to print.
    flush: Indicates whether to flush the output (only used in interactive
           mode).
docstr_tok: ["Prints","a","message","about","download","progress","either","to","the","console","or","TF","log",".","Args",":","msg",":","Message","to","print",".","flush",":","Indicates","whether","to","flush","the","output","(","only","used","in","interactive","mode",")","."]
code: def _print_download_progress_msg(self, msg, flush=False):
      """Prints a message about download progress either to the console or TF log.
  
      Args:
        msg: Message to print.
        flush: Indicates whether to flush the output (only used in interactive
               mode).
      """
      if self._interactive_mode():
          # Print progress message to console overwriting previous progress
          # message.
          self._max_prog_str = max(self._max_prog_str, len(msg))
          sys.stdout.write("\r%-{}s".format(self._max_prog_str) % msg)
          sys.stdout.flush()
          if flush:
              print("\n")
      else:
          # Interactive progress tracking is disabled. Print progress to the
          # standard TF log.
          logging.info(msg)
  
imports: import abc
  import datetime
  import enum
  import os
  import socket
  import ssl
  import sys
  import tarfile
  import tempfile
  import time
  import urllib
  import uuid
  from absl import flags
  from absl import logging
  import tensorflow
  from tensorflow_hub import file_utils
  from tensorflow_hub import tf_utils
label_desc: Use image node_id 2 for calling the DownloadManager obj's underlying member method code with example usage: obj._print_download_progress_msg(msg, flush) without return types