class_docstr: Event handler that uploads respecting throttling.
  
  Uploads files every RATE_LIMIT_SECONDS, which changes as the size increases to deal
  with throttling.
class_docstr_tok: ["Event","handler","that","uploads","respecting","throttling",".","Uploads","files","every","RATE_LIMIT_SECONDS",",","which","changes","as","the","size","increases","to","deal","with","throttling","."]
code: def __init__(
      self,
      file_path: PathStr,
      save_name: LogicalPath,
      file_pusher: "FilePusher",
      settings: Optional["SettingsStatic"] = None,
      *args: Any,
      **kwargs: Any,
  ) -> None:
      super().__init__(
          file_path, save_name, file_pusher, *args, **kwargs
      )
      self._last_uploaded_time: Optional[float] = None
      self._last_uploaded_size: int = 0
      if settings is not None:
          if settings._live_policy_rate_limit is not None:
              self.RATE_LIMIT_SECONDS = settings._live_policy_rate_limit
          self._min_wait_time: Optional[
              float
          ] = settings._live_policy_wait_time
      else:
          self._min_wait_time = None
  
imports: import abc
  import fnmatch
  import glob
  import logging
  import os
  import queue
  import time
  from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, MutableSet, Optional
  from wandb import util
  from wandb.sdk.interface.interface import GlobStr
  from wandb.sdk.lib.paths import LogicalPath
label_desc: Use image node_id 1 to create a new PolicyLive object from inherited base classes: FileEventHandler with example: obj = PolicyLive(file_path, save_name, file_pusher, settings)