code: def update_settings_from_buildkite(settings: Dict):
      release_frequency = get_buildkite_prompt_value(
          "release-frequency"
      )
      if release_frequency:
          settings["frequency"] = get_frequency(release_frequency)
          if release_frequency.endswith("-smoke"):
              settings["prefer_smoke_tests"] = True
  
      ray_test_repo_branch = get_buildkite_prompt_value(
          "release-ray-test-repo-branch"
      )
      if ray_test_repo_branch:
          repo, branch = split_ray_repo_str(ray_test_repo_branch)
          settings["ray_test_repo"] = repo
          settings["ray_test_branch"] = branch
  
      ray_wheels = get_buildkite_prompt_value("release-ray-wheels")
      if ray_wheels:
          settings["ray_wheels"] = ray_wheels
  
      test_name_filter = get_buildkite_prompt_value("release-test-name")
      if test_name_filter:
          settings[
              "test_attr_regex_filters"
          ] = get_test_attr_regex_filters("name:" + test_name_filter)
  
      test_attr_regex_filters = get_buildkite_prompt_value(
          "release-test-attr-regex-filters"
      )
      if test_attr_regex_filters:
          settings[
              "test_attr_regex_filters"
          ] = get_test_attr_regex_filters(test_attr_regex_filters)
  
      test_priority = get_buildkite_prompt_value("release-priority")
      if test_priority:
          settings["priority"] = get_priority(test_priority)
  
      no_concurrency_limit = get_buildkite_prompt_value(
          "release-no-concurrency-limit"
      )
      if no_concurrency_limit == "yes":
          settings["no_concurrency_limit"] = True
  
      return settings
  
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 9 for calling a global function with example usage: update_settings_from_buildkite(settings) and returns: settings