code: def gather_explicit_activities(self):
          
          for stmt in self.statements:
              agents = stmt.agent_list()
              # Activity types given as ActivityConditions
              for agent in agents:
                  if agent is not None and agent.activity is not None:
                      agent_base = self._get_base(agent)
                      agent_base.add_activity(agent.activity.activity_type)
              # Object activities given in RegulateActivity statements
              if isinstance(stmt, RegulateActivity):
                  if stmt.obj is not None:
                      obj_base = self._get_base(stmt.obj)
                      obj_base.add_activity(stmt.obj_activity)
              # Activity types given in ActiveForms
              elif isinstance(stmt, ActiveForm):
                  agent_base = self._get_base(stmt.agent)
                  agent_base.add_activity(stmt.activity)
                  if stmt.is_active:
                      agent_base.add_active_state(stmt.activity, stmt.agent,
                                                  stmt.evidence)
                  else:
                      agent_base.add_inactive_state(stmt.activity, stmt.agent,
                                                    stmt.evidence)
docs: Aggregate all explicit activities and active forms of Agents.
  
          This function iterates over self.statements and extracts explicitly
          stated activity types and active forms for Agents.