<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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