code: def check_file(file_path):
      """
      Check if the provided file path is valid and readable.
  
      Args:
          file_path: The path of the file to check.
  
      Raises:
          SystemExit: If the file is not readable or does not exist.
      """
      if not file_path.is_file() or not os.access(file_path, os.R_OK):
          print(
              f"Error: Cannot read cluster configuration file: {file_path}"
          )
          sys.exit(1)
  
imports: import argparse
  import os
  import re
  import subprocess
  import sys
  import tempfile
  import time
  import traceback
  from pathlib import Path
  import boto3
  import yaml
  from google.cloud import storage
  import ray
label_desc: Use image node_id 3 for calling a global function with example usage: check_file(file_path) without return types