def METHOD_NAME():
    """
    Attach a console to a windows program that does not normally have one.
    Note: Uses a lazy import for win32console so you will to add pywin32
    to requirements.txt and tell the installer to include win32.win32console
    """
    # Lazy import so we don't have to check for OS.
    from win32 import win32console
    if win32console.GetConsoleWindow() == 0: # No console attached
        # The following kinda works but has flaky interaction with the existing prompt
        #win32console.AttachConsole(-1) # Attach to parent console
        # Instead create a new console for I/O and call it the sasview console
        win32console.AllocConsole()
        win32console.SetConsoleTitle('SasView console')