<s> from lib import actions <EOL> class GetModeAction ( actions . BaseAction ) : <EOL> def run ( self , structure = None , device = None ) : <EOL> if structure and device : <EOL> nest = self . _get_device ( structure , device ) <EOL> else : <EOL> nest = self . _get_default_device ( ) <EOL> return nest . mode </s>
