def get_device_category(self, cat):
        """Return the device category and name given the category id"""
        if cat in self.device_categories:
            return self.device_categories[cat]
        else:
            return False
def get_device_category ( self , cat ) : if cat in self . device_categories : return self . device_categories [ cat ] else : return False
Return the device category and name given the category id