from typing import Dict
from typing import Any


def _get_max_attempts(config: Dict[str, Any]) -> int:
  """Retrieves the max attempts from the config.

  Args:
    config: a dictionary with the platform configuration.

  Returns:
    The number of attempts.
  """
  return config['queue_config']['retry_config']['max_attempts']