code: def setup_attrs(self, configured_app, session) -> None:
      self.default_time = timezone.datetime(2020, 1, 1)
  
      clear_db_runs()
      clear_db_xcom()
  
      self.app = configured_app
  
      self.dag = self._create_dag()
  
      self.app.dag_bag = DagBag(os.devnull, include_examples=False)
      self.app.dag_bag.dags = {self.dag.dag_id: self.dag}  # type: ignore
      self.app.dag_bag.sync_to_db()  # type: ignore
  
      self.dag.create_dagrun(
          run_id="TEST_DAG_RUN_ID",
          execution_date=self.default_time,
          run_type=DagRunType.MANUAL,
          state=DagRunState.SUCCESS,
          session=session,
          data_interval=DataInterval(
              timezone.datetime(2020, 1, 1),
              timezone.datetime(2020, 1, 2),
          ),
      )
      session.flush()
  
      self.client = self.app.test_client()
  
imports: from __future__ import annotations
  import os
  from urllib.parse import quote_plus
  import pytest
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.models.baseoperatorlink import BaseOperatorLink
  from airflow.models.dag import DAG
  from airflow.models.dagbag import DagBag
  from airflow.models.xcom import XCom
  from airflow.plugins_manager import AirflowPlugin
  from airflow.providers.google.cloud.operators.bigquery import BigQueryExecuteQueryOperator
  from airflow.security import permissions
  from airflow.timetables.base import DataInterval
  from airflow.utils import timezone
  from airflow.utils.state import DagRunState
  from airflow.utils.types import DagRunType
  from tests.test_utils.api_connexion_utils import create_user, delete_user
  from tests.test_utils.db import clear_db_runs, clear_db_xcom
  from tests.test_utils.mock_plugins import mock_plugin_manager
label_desc: Use image node_id 1 for calling the TestGetExtraLinks obj's underlying member method code with example usage: obj.setup_attrs(configured_app, session) without return types