code: def package(
      files,
      tag,
      metadata,
      extra_options,
      branch,
      template_dir,
      plugins_dir,
      static,
      install,
      spatialite,
      version_note,
      secret,
      port,
      **extra_metadata,
  ):
      """Package SQLite files into a Datasette Docker container"""
      if not shutil.which("docker"):
          click.secho(
              ' The package command requires "docker" to be installed and configured ',
              bg="red",
              fg="white",
              bold=True,
              err=True,
          )
          sys.exit(1)
      with temporary_docker_directory(
          files,
          "datasette",
          metadata=metadata,
          extra_options=extra_options,
          branch=branch,
          template_dir=template_dir,
          plugins_dir=plugins_dir,
          static=static,
          install=install,
          spatialite=spatialite,
          version_note=version_note,
          secret=secret,
          extra_metadata=extra_metadata,
          port=port,
      ):
          args = ["docker", "build"]
          if tag:
              args.append("-t")
              args.append(tag)
          args.append(".")
          call(args)
  
imports: import asyncio
  import uvicorn
  import click
  from click import formatting
  from click.types import CompositeParamType
  from click_default_group import DefaultGroup
  import functools
  import json
  import os
  import pathlib
  from runpy import run_module
  import shutil
  from subprocess import call
  import sys
  import textwrap
  import webbrowser
  from .app import OBSOLETE_SETTINGS, Datasette, DEFAULT_SETTINGS, SETTINGS, SQLITE_LIMIT_ATTACHED, pm
  from .utils import LoadExtension, StartupError, check_connection, find_spatialite, parse_metadata, ConnectionProblem, SpatialiteConnectionProblem, initial_path_for_datasette, pairs_to_nested_config, temporary_docker_directory, fail_if_plugins_in_metadata, value_as_boolean, SpatialiteNotFound, StaticMount, ValueAsBooleanError
  from .utils.sqlite import sqlite3
  from .utils.testing import TestClient
  from .version import __version__
label_desc: Use image node_id 6 for calling a global function with example usage: package(files, tag, metadata, extra_options, branch, template_dir, plugins_dir, static, install, spatialite, version_note, secret, port) without return types