class_docstr: MockNotifier class for testing
class_docstr_tok: ["MockNotifier","class","for","testing"]
code: def __init__(self, message: str | None = "This is a test message"):
      super().__init__()
      self.message = message
  
file_path: airflow/tests/notifications/test_basenotifier.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from unittest.mock import MagicMock
  import jinja2
  import pytest
  from airflow.notifications.basenotifier import BaseNotifier
  from airflow.operators.empty import EmptyOperator
label_desc: Use image node_id 1 to create a new MockNotifier object from inherited base classes: BaseNotifier with example: obj = MockNotifier(message)