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 on_modified(self, force: bool = False) -> None:
      if self.current_size == 0:
          return
      if self._last_sync == os.path.getmtime(self.file_path):
          return
      if force or self.should_update():
          self.save_file()
  
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 5 for calling the PolicyLive obj's underlying member method code with example usage: obj.on_modified(force) without return types