code: def show_menu(items: List[str], header=None) -> int:
      print("\n-- MXNet dev menu --\n")
  
      def hr():
          print("".join(["-"] * 30))
  
      if header:
          print(header)
      hr()
      for i, x in enumerate(items, 1):
          print("{}. {}".format(i, x))
      hr()
      choice = int(input("Choose option> ")) - 1
      if choice < 0 or choice >= len(items):
          raise RuntimeError(
              "Choice must be between {} and {}".format(1, len(items))
          )
      return 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 5 for calling a global function with example usage: show_menu(items, header) and returns: choice