code: def get_priority(priority_str: str) -> Priority:
      priority_str = priority_str.lower()
      if priority_str not in priority_str_to_enum:
          raise ReleaseTestConfigError(
              f"Priority not found: {priority_str}. Must be one of "
              f"{list(priority_str_to_enum.keys())}."
          )
      return priority_str_to_enum[priority_str]
  
file_path: ray/release/ray_release/buildkite/settings.py
imports: import enum
  import os
  import subprocess
  from typing import Optional, Dict, Tuple
  from ray_release.exception import ReleaseTestConfigError
  from ray_release.logger import logger
  from ray_release.wheels import DEFAULT_BRANCH, get_buildkite_repo_branch
label_desc: Use image node_id 2 for calling a global function with example usage: get_priority(priority_str) and returns: priority_str_to_enum