code: def use_menu_ui(args) -> None:
      command_list = list(COMMANDS.keys())
      if (
          hasattr(args, "choice")
          and args.choice
          and args.choice[0].isdigit()
      ):
          choice = int(args.choice[0]) - 1
      else:
          choice = show_menu(command_list, "Available actions")
      handle_commands(COMMANDS[command_list[choice]])
  
imports: import argparse
  import os
  import sys
  from subprocess import check_call
  import shlex
  from ci.util import retry, remember_cwd
  from typing import List
  from collections import OrderedDict
  import logging
  import yaml
  import shutil
label_desc: Use image node_id 7 for calling a global function with example usage: use_menu_ui(args) without return types