code: def get_active_forms(self):
          
          act_events = self.tree.findall("EVENT/[type='ONT::ACTIVATE']")
          def _agent_is_basic(agent):
              if not agent.mods and not agent.mutations \
                      and not agent.bound_conditions and not agent.location:
                  return True
              return False
          for event in act_events:
              if event.attrib['id'] in self._static_events:
                  continue
              agent = event.find(".//*[@role=':AGENT']")
              if agent is not None:
                  # In this case this is not an ActiveForm statement
                  continue
              affected = event.find(".//*[@role=':AFFECTED']")
              if affected is None:
                  msg = 'Skipping active form event with no affected term.'
                  logger.debug(msg)
                  continue
  
              affected_id = affected.attrib.get('id')
              if affected_id is None:
                  logger.debug(
                      'Skipping active form event with missing affected agent')
                  continue
  
              affected_agent = self._get_agent_by_id(affected_id,
                                                     event.attrib['id'])
              # If it is a list of agents, skip them for now
              if not isinstance(affected_agent, Agent):
                  continue
              if _agent_is_basic(affected_agent):
                  continue
              # The affected agent has to be protein-like type
              affected_type = affected.find('type')
              if affected_type is None or \
                 affected_type.text not in protein_types:
                  continue
              # If the Agent state is at the base state then this is not an
              # ActiveForm statement
              if _is_base_agent_state(affected_agent):
                  continue
              ev = self._get_evidence(event)
              location = self._get_event_location(event)
              st = ActiveForm(affected_agent, 'activity', True, evidence=ev)
              _stmt_location_to_agents(st, location)
              self.statements.append(st)
              self._add_extracted('ONT::ACTIVATE', event.attrib['id'])
docs: Extract ActiveForm INDRA Statements.