code: def _get_group_from_state(self, sid):
          
          for index, selectgroup in enumerate(self.groups):
              if sid in selectgroup:
                  return index
docs: Args:
              sid (int): The state identifier
          Return:
              int: The group identifier that the state belongs