code: def configure_logging(
      log_style: Optional[str] = None,
      color_mode: Optional[str] = None,
      verbosity: Optional[int] = None,
  ):
      """Configures logging for cluster command calls.
  
      Args:
          log_style: If 'pretty', outputs with formatting and color.
              If 'record', outputs record-style without formatting.
              'auto' defaults to 'pretty', and disables pretty logging
              if stdin is *not* a TTY. Defaults to "auto".
          color_mode (str):
              Can be "true", "false", or "auto".
  
              Enables or disables `colorful`.
  
              If `color_mode` is "auto", is set to `not stdout.isatty()`
          vebosity (int):
              Output verbosity (0, 1, 2, 3).
  
              Low verbosity will disable `verbose` and `very_verbose` messages.
  
      """
      cli_logger.configure(
          log_style=log_style,
          color_mode=color_mode,
          verbosity=verbosity,
      )
  
imports: import json
  import os
  import tempfile
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, Iterator, List, Optional, Union
  from ray.autoscaler._private import commands
  from ray.autoscaler._private.cli_logger import cli_logger
  from ray.autoscaler._private.event_system import CreateClusterEvent
  from ray.autoscaler._private.event_system import global_event_system
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 8 for calling a global function with example usage: configure_logging(log_style, color_mode, verbosity) without return types