code: def _no_sql_testing_config(dialect="postgresql", directives=""):
      """use a postgresql url with no host so that
      connections guaranteed to fail"""
      dir_ = os.path.join(_get_staging_directory(), "scripts")
      return _write_config_file(
          """
  [alembic]
  script_location = %s
  sqlalchemy.url = %s://
  %s
  
  [loggers]
  keys = root
  
  [handlers]
  keys = console
  
  [logger_root]
  level = WARN
  handlers = console
  qualname =
  
  [handler_console]
  class = StreamHandler
  args = (sys.stderr,)
  level = NOTSET
  formatter = generic
  
  [formatters]
  keys = generic
  
  [formatter_generic]
  format = %%(levelname)-5.5s [%%(name)s] %%(message)s
  datefmt = %%H:%%M:%%S
  
  """
          % (dir_, dialect, directives)
      )
  
imports: import importlib.machinery
  import os
  import shutil
  import textwrap
  from sqlalchemy.testing import config
  from sqlalchemy.testing import provision
  from .None import util
  from ..None import command
  from ..None import script
  from ..None import util
  from ..script import Script
  from ..script import ScriptDirectory
label_desc: Use image node_id 9 for calling a global function with example usage: _no_sql_testing_config(dialect, directives) and returns: _write_config_file