class_docstr: This manager is used to load plugins in runtime env agent.
class_docstr_tok: ["This","manager","is","used","to","load","plugins","in","runtime","env","agent","."]
docstr: Create a URI cache for a plugin.
  
  Args:
      plugin_name: The name of the plugin.
  
  Returns:
      The created URI cache for the plugin.
docstr_tok: ["Create","a","URI","cache","for","a","plugin",".","Args",":","plugin_name",":","The","name","of","the","plugin",".","Returns",":","The","created","URI","cache","for","the","plugin","."]
code: def create_uri_cache_for_plugin(
      self, plugin: RuntimeEnvPlugin
  ) -> URICache:
      """Create a URI cache for a plugin.
  
      Args:
          plugin_name: The name of the plugin.
  
      Returns:
          The created URI cache for the plugin.
      """
      # Set the max size for the cache.  Defaults to 10 GB.
      cache_size_env_var = (
          f"RAY_RUNTIME_ENV_{plugin.name}_CACHE_SIZE_GB".upper()
      )
      cache_size_bytes = int(
          (1024**3) * float(os.environ.get(cache_size_env_var, 10))
      )
      return URICache(plugin.delete_uri, cache_size_bytes)
  
imports: import logging
  import os
  import json
  from abc import ABC
  from typing import List, Dict, Optional, Any, Type
  from ray._private.runtime_env.context import RuntimeEnvContext
  from ray._private.runtime_env.uri_cache import URICache
  from ray._private.runtime_env.constants import RAY_RUNTIME_ENV_PLUGINS_ENV_VAR, RAY_RUNTIME_ENV_PLUGIN_DEFAULT_PRIORITY, RAY_RUNTIME_ENV_CLASS_FIELD_NAME, RAY_RUNTIME_ENV_PRIORITY_FIELD_NAME, RAY_RUNTIME_ENV_PLUGIN_MIN_PRIORITY, RAY_RUNTIME_ENV_PLUGIN_MAX_PRIORITY
  from ray.util.annotations import DeveloperAPI
  from ray._private.utils import import_attr
label_desc: Use image node_id 6 for calling the RuntimeEnvPluginManager obj's underlying member method code with example usage: obj.create_uri_cache_for_plugin(plugin) and returns: URICache