#NEWLINE# def _validate_mode( self , * args , **kwargs ) : #NEWLINE# #INDENT# "\n        Raises MethodNotEnabledInCurrentMode if a user tries to interact\n        with the har explicitly while in 'auto' or 'error' mode.\n        " #NEWLINE# caller_mode = kwargs . get ( 'caller_mode' , 'explicit' ) #NEWLINE# if ( caller_mode != self . mode ) : #NEWLINE# #INDENT# raise MethodNotEnabledInCurrentMode