code: def wait_key(message=""):
      """Wait for a key press on the console and return it."""
      if message != "":
          print(message)
  
      result = None
      if os.name == "nt":
          import msvcrt
  
          result = msvcrt.getch()
      else:
          # pylint: disable=import-error
          import termios  # pylint: disable=import-error
  
          fd = sys.stdin.fileno()
  
          oldterm = termios.tcgetattr(fd)
          newattr = termios.tcgetattr(fd)
          newattr[3] = newattr[3] & ~termios.ICANON & ~termios.ECHO
          termios.tcsetattr(fd, termios.TCSANOW, newattr)
  
          try:
              result = sys.stdin.read(1)
          except IOError:
              pass
          finally:
              termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm)
  
      return result
  
imports: import numpy
  import math
  import time
  import sys
  import os
  import inspect
  import re
  import uuid
  from collections import abc
  import textwrap
  from functools import wraps
  import gc
  import timeit
label_desc: Use image node_id 20 for calling a global function with example usage: wait_key(message) and returns: result