code: def resetdb(args):
      """Reset the metadata database."""
      print(f"DB: {settings.engine.url!r}")
      if not (
          args.yes
          or input(
              "This will drop existing tables if they exist. Proceed? (y/n)"
          ).upper()
          == "Y"
      ):
          raise SystemExit("Cancelled")
      db.resetdb(skip_init=args.skip_init)
  
imports: from __future__ import annotations
  import logging
  import os
  import textwrap
  import warnings
  from tempfile import NamedTemporaryFile
  from typing import TYPE_CHECKING
  from packaging.version import parse
  from tenacity import Retrying, stop_after_attempt, wait_fixed
  from airflow import settings
  from airflow.exceptions import AirflowException
  from airflow.utils import cli, db
  from airflow.utils.db import _REVISION_HEADS_MAP
  from airflow.utils.db_cleanup import config_dict, drop_archived_tables, export_archived_records, run_cleanup
  from airflow.utils.process_utils import execute_interactive
  from airflow.utils.providers_configuration_loader import providers_configuration_loaded
label_desc: Use image node_id 2 for calling a global function with example usage: resetdb(args) without return types