def _determine_pulse_author(pulse: Pulse, provider: Identity) -> Identity: pulse_author = pulse.author_name if not pulse_author: return provider if pulse_author == provider.name: return provider return create_organization(pulse_author, author=provider)
def _create_author() -> Identity: return create_organization("AlienVault")
def _create_dummy_object(self) -> Identity: return create_organization(self._DUMMY_OBJECT_NAME, self.pulse_author)