from typing import Any


def get_mode(args_dict: dict[str, Any]) -> str:
    """Returns the execution mode from the command line args dict."""
    if not (mode := args_dict['mode']):  # no execution mode was given
        print('WARNING: no execution mode provided, defaulting to run mode.')
        return 'run'
    return mode.lower()