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 min_wait_for_size(cls, size: int) -> float:
      if size < 10 * cls.unit_dict["MB"]:
          return 60
      elif size < 100 * cls.unit_dict["MB"]:
          return 5 * 60
      elif size < cls.unit_dict["GB"]:
          return 10 * 60
      else:
          return 20 * 60
  
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 3 for calling the PolicyLive obj's underlying member method code with example usage: obj.min_wait_for_size(cls, size) and returns: int, unknown, unknown, unknown