code: def win_getpass(prompt="Password: ", stream=None):
      """Prompt for password with echo off, using Windows getwch()."""
      if sys.stdin is not sys.__stdin__:
          return fallback_getpass(prompt, stream)
  
      for c in prompt:
          msvcrt.putwch(c)
      pw = ""
      while 1:
          c = msvcrt.getwch()
          if c == "\r" or c == "\n":
              break
          if c == "\003":
              raise KeyboardInterrupt
          if c == "\b":
              pw = pw[:-1]
          else:
              pw = pw + c
      msvcrt.putwch("\r")
      msvcrt.putwch("\n")
      return pw
  
file_path: cpython/Lib/getpass.py
imports: import contextlib
  import io
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: win_getpass(prompt, stream) and returns: pw, fallback_getpass