def METHOD_NAME(self, timeout=None) -> Optional[Dict[str, Any]]:
    """
    Either take an act from this mock agent's act queue (for use
    by tests and other mock purposes) or request a regular act
    (for use in manual testing).
    """
    if len(self.datastore.agent_data[self.db_id]["pending_acts"]) > 0:
        act = self.datastore.agent_data[self.db_id]["pending_acts"].pop(0)
    else:
        act = super().METHOD_NAME(timeout=timeout)
    if act is not None:
        self.datastore.agent_data[self.db_id]["acts"].append(act)
    return act