code: def __init__(self, data: dict[str, Any] | None = None):
      if data:
          self.data = data
      else:
          self.data = {}
  
file_path: airflow/tests/providers/apache/spark/decorators/test_pyspark.py
imports: from __future__ import annotations
  from typing import Any
  from unittest import mock
  import pytest
  from airflow.decorators import task
  from airflow.models import Connection
  from airflow.utils import db, timezone
label_desc: Use image node_id 1 to create a new FakeConfig object  with example: obj = FakeConfig(data)