code: def set_attached_console_visible(state):
      """Show/hide system console window attached to current process.
      Return it's previous state.
  
      Availability: Windows"""
      flag = {True: SW_SHOW, False: SW_HIDE}
      return bool(ShowWindow(console_window_handle, flag[state]))
  
label_desc: Use image node_id 1 for calling a global function with example usage: set_attached_console_visible(state) and returns: bool