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_priority(self, priority: Any) -> None:
      if (
          not isinstance(priority, int)
          or priority < RAY_RUNTIME_ENV_PLUGIN_MIN_PRIORITY
          or priority > RAY_RUNTIME_ENV_PLUGIN_MAX_PRIORITY
      ):
          raise RuntimeError(
              f"Invalid runtime env priority {priority}, "
              "it should be an integer between "
              f"{RAY_RUNTIME_ENV_PLUGIN_MIN_PRIORITY} "
              f"and {RAY_RUNTIME_ENV_PLUGIN_MAX_PRIORITY}."
          )
  
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 3 for calling the RuntimeEnvPluginManager obj's underlying member method code with example usage: obj.validate_priority(priority) without return types