code: def __init__(self, total, frequency=10):
      self.current = 0
      self.total = total
      self.last_warning = time.time()
      self.frequency = frequency
      _logger.warning(
          "You are sending %dMB of source code to Neptune. "
          "It is pretty uncommon - please make sure it's what you wanted.",
          self.total / (1024 * 1024),
      )
  
imports: import io
  import logging
  import os
  import stat
  import time
  from abc import ABCMeta, abstractmethod
  from dataclasses import dataclass
  from io import BytesIO
  from pprint import pformat
  from typing import BinaryIO, Generator, List, Set, Union
  import six
label_desc: Use image node_id 1 to create a new LoggingProgressIndicator object from inherited base classes: ProgressIndicator with example: obj = LoggingProgressIndicator(total, frequency)