code: def upgradedb(args):
      """Upgrades the metadata database."""
      warnings.warn(
          "`db upgrade` is deprecated. Use `db migrate` instead.",
          DeprecationWarning,
      )
      migratedb(args)
  
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 3 for calling a global function with example usage: upgradedb(args) without return types