code: def get_input_encoding():
      """Return the default standard input encoding.
  
      If sys.stdin has no encoding, 'ascii' is returned."""
      # There are strange environments for which sys.stdin.encoding is None. We
      # ensure that a valid encoding is returned.
      encoding = getattr(sys.stdin, "encoding", None)
      if encoding is None:
          encoding = "ascii"
      return encoding
  
imports: import ast
  import codeop
  import re
  import sys
  import warnings
  from IPython.utils.py3compat import cast_unicode
  from IPython.core.inputtransformer import leading_indent, classic_prompt, ipy_prompt, strip_encoding_cookie, cellmagic, assemble_logical_lines, help_end, escaped_commands, assign_from_magic, assign_from_system, assemble_python_lines
  from IPython.core.inputtransformer import ESC_SHELL, ESC_SH_CAP, ESC_HELP, ESC_HELP2, ESC_MAGIC, ESC_MAGIC2, ESC_QUOTE, ESC_QUOTE2, ESC_PAREN, ESC_SEQUENCES
label_desc: Use image node_id 5 for calling a global function with example usage: get_input_encoding() and returns: encoding