code: def main(production: bool, test_prefix: List[str]) -> None:
      """
      Run state machine on all CI tests.
      """
      logger.info("Starting state machine bot ...")
      init_global_config(
          bazel_runfile("release/ray_release/configs/oss_config.yaml")
      )
      test_prefix = test_prefix or ALL_TEST_PREFIXES
      tests = _get_ci_tests(test_prefix)
      for test in tests:
          _move_state(test, production)
  
file_path: ray/ci/ray_ci/automation/state_machine_bot.py
imports: import click
  from typing import List
  from ci.ray_ci.utils import logger
  from ray_release.test import Test
  from ray_release.test_automation.ci_state_machine import CITestStateMachine
  from ray_release.configs.global_config import init_global_config
  from ray_release.bazel import bazel_runfile
label_desc: Use image node_id 1 for calling a global function with example usage: main(production, test_prefix) without return types