code: def setup_method(self):
      db.merge_conn(
          Connection(
              conn_id="pyspark_local",
              conn_type="spark",
              host="spark://none",
              extra="",
          )
      )
  
      db.merge_conn(
          Connection(
              conn_id="spark-connect",
              conn_type="spark",
              host="sc://localhost",
              extra="",
          )
      )
  
      db.merge_conn(
          Connection(
              conn_id="spark-connect-auth",
              conn_type="spark_connect",
              host="sc://localhost",
              password="1234",
              login="connect",
              extra={
                  "use_ssl": True,
              },
          )
      )
  
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 for calling the TestPysparkDecorator obj's underlying member method code with example usage: obj.setup_method() without return types