code: def get_groups(self):
          '''Retrieve groups listed in ChemInventory'''
          resp = self._post('general-retrievelocations', 'locations')
          final_resp = []
          if resp['groupinfo']:
              for group in resp['groupinfo']:
                  final_resp.append(Group(
                      name=group.get('name'),
                      inventory_id=group.get('id')
                  ))
          return final_resf get_groups(self):
          '''Retrieve groups listed in ChemInventory'''
          resp = self._post('general-retrievelocations', 'locations')
          final_resp = []
          if resp['groupinfo']:
              for group in resp['groupinfo']:
                  final_resp.append(Group(
                      name=group.get('name'),
                      inventory_id=group.get('id')
                  ))
          return final_resp
docs: Retrieve groups listed in ChemInventory