def METHOD_NAME(mocked_event_map, sendgrid_email_plugin):
    sample_payload = {"key_1": "value"}
    mocked_event_task = MagicMock()
    event_map = {
        UserNotifyEvent.ACCOUNT_PASSWORD_RESET: (
            mocked_event_task,
            "account_password_reset_template_id",
        )
    }
    mocked_event_map.__getitem__.side_effect = event_map.__getitem__
    mocked_event_map.__contains__.return_value = True
    mocked_event_map.get.side_effect = event_map.get
    plugin = sendgrid_email_plugin(
        active=True, api_key="AB12", account_password_reset_template_id=None
    )
    plugin.notify(UserNotifyEvent.ACCOUNT_PASSWORD_RESET, sample_payload, None)
    assert mocked_event_map.get.called
    assert not mocked_event_task.delay.called