code: def map_aliases_to_device_objects(self):
          all_devices = self.get_all_devices_in_portal()
          for dev_o in all_devices:
              dev_o['portals_aliases'] = self.get_portal_by_name(
                                                          self.portal_name()
                                                  )[2][1]['info']['aliases'][ dev_o['rid'] ]
          return all_devices