def print_device_list(self, device_list=None):
dev_list = device_list if device_list is not None else self.get_all_devices_in_portal()<EOL>for dev in dev_list:<EOL><INDENT>print('<STR_LIT>'.format(<EOL>dev['<STR_LIT:info>']['<STR_LIT:description>']['<STR_LIT:name>'],<EOL>dev['<STR_LIT>'],<EOL>dev['<STR_LIT>']if len(dev['<STR_LIT>']) != <NUM_LIT:1><EOL>else dev['<STR_LIT>'][<NUM_LIT:0>]<EOL>)<EOL>)<EOL><DEDENT>
Optional parameter is a list of device objects. If omitted, will
just print all portal devices objects.