class_docstr: A plugin that fakes taking up local disk space when creating its environment.
  
  This plugin is used to test that the URI caching is working correctly.
  Example:
      runtime_env = {"UriCachingTestPlugin": {"uri": "file:///a", "size_bytes": 10}}
code: def write_plugin_usage_data(self) -> None:
      with open(uri_caching_test_file_path, "w") as f:
          data = {
              "uris_to_sizes": self.uris_to_sizes,
              "modify_context_call_count": self.modify_context_call_count,
              "create_call_count": self.create_call_count,
          }
          f.write(json.dumps(data))
  
imports: import asyncio
  import logging
  import os
  from pathlib import Path
  import time
  from unittest import mock
  import tempfile
  import json
  from typing import List
  import pytest
  import ray
  from ray._private.runtime_env.context import RuntimeEnvContext
  from ray._private.runtime_env.plugin import RuntimeEnvPlugin
  from ray._private.test_utils import enable_external_redis, wait_for_condition
  from ray.exceptions import RuntimeEnvSetupError
  from ray.runtime_env.runtime_env import RuntimeEnv
label_desc: Use image node_id 2 for calling the UriCachingTestPlugin obj's underlying member method code with example usage: obj.write_plugin_usage_data() without return types