code: def test_no_proxy_success(
      mocker, caplog, empty_environ, setlevel_warning
  ):
      app = Dash()
  
      if setlevel_warning:
          app.logger.setLevel(logging.WARNING)
  
      # mock out the run method so we don't actually start listening forever
      mocker.patch.object(app.server, "run")
  
      app.run(port=8787)
  
      STARTUP_MESSAGE = "Dash is running on http://127.0.0.1:8787/\n"
      if setlevel_warning:
          assert (
              caplog.text is None or STARTUP_MESSAGE not in caplog.text
          )
      else:
          assert STARTUP_MESSAGE in caplog.text
  
imports: import os
  import logging
  import pytest
  from flask import Flask
  from dash import Dash, exceptions
  from dash._configs import pathname_configs, DASH_ENV_VARS, get_combined_config, load_dash_env_vars
  from dash._utils import AttributeDict
  from dash._get_paths import app_get_asset_url, app_get_relative_path, app_strip_relative_path, get_asset_url, get_relative_path, strip_relative_path
label_desc: Use image node_id 21 for calling a global function with example usage: test_no_proxy_success(mocker, caplog, empty_environ, setlevel_warning) without return types