code: def test_dag_paused(self):
      pause_url_template = "/api/experimental/dags/{}/paused/{}"
      paused_url_template = "/api/experimental/dags/{}/paused"
      paused_url = paused_url_template.format("example_bash_operator")
  
      response = self.client.get(
          pause_url_template.format("example_bash_operator", "true")
      )
      self.assert_deprecated(response)
      assert "ok" in response.data.decode("utf-8")
      assert 200 == response.status_code
  
      paused_response = self.client.get(paused_url)
  
      assert 200 == paused_response.status_code
      assert {"is_paused": True} == paused_response.json
  
      response = self.client.get(
          pause_url_template.format("example_bash_operator", "false")
      )
      assert "ok" in response.data.decode("utf-8")
      assert 200 == response.status_code
  
      paused_response = self.client.get(paused_url)
  
      assert 200 == paused_response.status_code
      assert {"is_paused": False} == paused_response.json
  
imports: from __future__ import annotations
  import json
  import os
  import re
  from datetime import timedelta
  from unittest import mock
  from urllib.parse import quote_plus
  import pytest
  from airflow import settings
  from airflow.api.common.experimental.trigger_dag import trigger_dag
  from airflow.models import DagBag, DagRun, Pool, TaskInstance
  from airflow.models.serialized_dag import SerializedDagModel
  from airflow.settings import Session
  from airflow.utils.timezone import datetime, parse, utcnow
  from airflow.version import version
  from tests.test_utils.db import clear_db_pools
label_desc: Use image node_id 6 for calling the TestApiExperimental obj's underlying member method code with example usage: obj.test_dag_paused() without return types