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 __init__(self):
      # Keeps track of the "disk space" each URI takes up for the
      # UriCachingTestPlugin.
      self.uris_to_sizes = {}
      self.modify_context_call_count = 0
      self.create_call_count = 0
  
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 1 to create a new UriCachingTestPlugin object from inherited base classes: RuntimeEnvPlugin with example: obj = UriCachingTestPlugin()