code: def test_cli_internal_api_debug(self, app):
      with mock.patch(
          "airflow.cli.commands.internal_api_command.create_app",
          return_value=app,
      ), mock.patch.object(app, "run") as app_run:
          args = self.parser.parse_args(
              [
                  "internal-api",
                  "--debug",
              ]
          )
          internal_api_command.internal_api(args)
  
          app_run.assert_called_with(
              debug=True,
              use_reloader=False,
              port=9080,
              host="0.0.0.0",
          )
  
imports: from __future__ import annotations
  import os
  import subprocess
  import sys
  import time
  from unittest import mock
  import psutil
  import pytest
  from rich.console import Console
  from airflow import settings
  from airflow.cli import cli_parser
  from airflow.cli.commands import internal_api_command
  from airflow.cli.commands.internal_api_command import GunicornMonitor
  from airflow.settings import _ENABLE_AIP_44
  from tests.cli.commands._common_cli_classes import _ComonCLIGunicornTestClass
label_desc: Use image node_id 2 for calling the TestCliInternalAPI obj's underlying member method code with example usage: obj.test_cli_internal_api_debug(app) without return types