code: def test_policy_on_modified_rate_limited(mocked_live_policy):
      mocked_live_policy.save_file()
      first_upload_time = mocked_live_policy._last_uploaded_time
      with open(mocked_live_policy.file_path, "w") as fp:
          fp.write("a" * 1000)
          fp.close()
      # policy does not save a file if not enough time has passed
      mocked_live_policy.on_modified()
      assert mocked_live_policy._last_uploaded_time == first_upload_time
      assert mocked_live_policy._last_uploaded_size == 0
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_save_policies.py
imports: import os
  import time
  import pytest
  from wandb.filesync.dir_watcher import PolicyLive
label_desc: Use image node_id 3 for calling a global function with example usage: test_policy_on_modified_rate_limited(mocked_live_policy) without return types