code: def test_child_and_parent_subdomain(app, client) -> None:
      child_subdomain = "api"
      parent_subdomain = "parent"
      parent = flask.Blueprint("parent", __name__)
      child = flask.Blueprint(
          "child", __name__, subdomain=child_subdomain
      )
  
      @child.route("/")
      def index():
          return "child"
  
      parent.register_blueprint(child)
      app.register_blueprint(parent, subdomain=parent_subdomain)
  
      client.allow_subdomain_redirects = True
  
      domain_name = "domain.tld"
      app.config["SERVER_NAME"] = domain_name
      response = client.get(
          "/",
          base_url=f"http://{child_subdomain}.{parent_subdomain}.{domain_name}",
      )
  
      assert response.status_code == 200
  
      response = client.get(
          "/", base_url=f"http://{parent_subdomain}.{domain_name}"
      )
  
      assert response.status_code == 404
  
imports: import pytest
  from jinja2 import TemplateNotFound
  from werkzeug.http import parse_cache_control_header
  import flask
label_desc: Use image node_id 44 for calling a global function with example usage: test_child_and_parent_subdomain(app, client) and returns: str