code: def ResetConsoleAttr(encoding=None):
      """Resets the console attribute state to the console default.
  
      Args:
        encoding: Reset to this encoding instead of the default.
          ascii -- ASCII. This is the default.
          utf8 -- UTF-8 unicode.
          win -- Windows code page 437.
  
      Returns:
        The global ConsoleAttr state object.
      """
      return GetConsoleAttr(encoding=encoding, reset=True)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import unicode_literals
  import os
  import sys
  import unicodedata
  from fire.console import console_attr_os
  from fire.console import encoding
  from fire.console import text
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: ResetConsoleAttr(encoding) and returns: GetConsoleAttr