class_docstr: The opposide of ``raw_mode``, used when we need cooked mode inside a
  `raw_mode` block.  Used in `CommandLineInterface.run_in_terminal`.::
  
      with cooked_mode(stdin):
          ''' the pseudo-terminal stdin is now used in cooked mode. '''
code: def _patch_lflag(cls, attrs):
      return attrs | (
          termios.ECHO | termios.ICANON | termios.IEXTEN | termios.ISIG
      )
  
imports: from __future__ import unicode_literals
  import os
  import re
  import six
  import termios
  import tty
  from six.moves import range
  from ..keys import Keys
  from ..key_binding.input_processor import KeyPress
label_desc: Use image node_id 1 for calling the cooked_mode obj's underlying member method code with example usage: obj._patch_lflag(cls, attrs) and returns: unknown