code: def dag_next_execution(args) -> None:
      """
      Return the next execution datetime of a DAG at the command line.
  
      >>> airflow dags next-execution tutorial
      2018-08-31 10:38:00
      """
      dag = get_dag(args.subdir, args.dag_id)
  
      with create_session() as session:
          last_parsed_dag: DagModel = session.scalars(
              select(DagModel).where(DagModel.dag_id == dag.dag_id)
          ).one()
  
      if last_parsed_dag.get_is_paused():
          print(
              "[INFO] Please be reminded this DAG is PAUSED now.",
              file=sys.stderr,
          )
  
      def print_execution_interval(interval: DataInterval | None):
          if interval is None:
              print(
                  "[WARN] No following schedule can be found. "
                  "This DAG may have schedule interval '@once' or `None`.",
                  file=sys.stderr,
              )
              print(None)
              return
          print(interval.start.isoformat())
  
      next_interval = dag.get_next_data_interval(last_parsed_dag)
      print_execution_interval(next_interval)
  
      for _ in range(1, args.num_executions):
          next_info = dag.next_dagrun_info(
              next_interval, restricted=False
          )
          next_interval = (
              None if next_info is None else next_info.data_interval
          )
          print_execution_interval(next_interval)
  
imports: from __future__ import annotations
  import ast
  import errno
  import json
  import logging
  import operator
  import signal
  import subprocess
  import sys
  import warnings
  from typing import TYPE_CHECKING
  from sqlalchemy import delete, select
  from airflow import settings
  from airflow.api.client import get_current_api_client
  from airflow.api_connexion.schemas.dag_schema import dag_schema
  from airflow.cli.simple_table import AirflowConsole
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.jobs.job import Job
  from airflow.models import DagBag, DagModel, DagRun, TaskInstance
  from airflow.models.dag import DAG
  from airflow.models.serialized_dag import SerializedDagModel
  from airflow.utils import cli, timezone
  from airflow.utils.cli import get_dag, get_dags, process_subdir, sigint_handler, suppress_logs_and_warning
  from airflow.utils.dot_renderer import render_dag, render_dag_dependencies
  from airflow.utils.providers_configuration_loader import providers_configuration_loaded
  from airflow.utils.session import NEW_SESSION, create_session, provide_session
  from airflow.utils.state import DagRunState
label_desc: Use image node_id 14 for calling a global function with example usage: dag_next_execution(args) without return types