code: def _raw_input(prompt="", stream=None, input=None):
      # This doesn't save the string in the GNU readline history.
      if not stream:
          stream = sys.stderr
      if not input:
          input = sys.stdin
      prompt = str(prompt)
      if prompt:
          try:
              stream.write(prompt)
          except UnicodeEncodeError:
              # Use replace error handler to get as much as possible printed.
              prompt = prompt.encode(stream.encoding, "replace")
              prompt = prompt.decode(stream.encoding)
              stream.write(prompt)
          stream.flush()
      # NOTE: The Python C API calls flockfile() (and unlock) during readline.
      line = input.readline()
      if not line:
          raise EOFError
      if line[-1] == "\n":
          line = line[:-1]
      return line
  
file_path: catboost/contrib/tools/python3/src/Lib/getpass.py
imports: import contextlib
  import io
  import os
  import sys
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: _raw_input(prompt, stream, input) and returns: line