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","."]
code: def validate_plugin_class(
      self, plugin_class: Type[RuntimeEnvPlugin]
  ) -> None:
      if not issubclass(plugin_class, RuntimeEnvPlugin):
          raise RuntimeError(
              f"Invalid runtime env plugin class {plugin_class}. "
              "The plugin class must inherit "
              "ray._private.runtime_env.plugin.RuntimeEnvPlugin."
          )
      if not plugin_class.name:
          raise RuntimeError(
              f"No valid name in runtime env plugin {plugin_class}."
          )
      if plugin_class.name in self.plugins:
          raise RuntimeError(
              f"The name of runtime env plugin {plugin_class} conflicts "
              f"with {self.plugins[plugin_class.name]}.",
          )
  
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 2 for calling the RuntimeEnvPluginManager obj's underlying member method code with example usage: obj.validate_plugin_class(plugin_class) without return types