code: def main(args):
      """Run through all checks for database."""
      presence_stage = PresenceStage(args)
      creation_stage = CreationStage(presence_stage)
      operations_stage = OperationsStage(creation_stage)
      stages = [presence_stage, creation_stage, operations_stage]
  
      for stage in stages:
          for check in stage.checks():
              print(check.__doc__, end=".. ")
              try:
                  status, msg = check()
                  print(status)
                  if status == "Skipping":
                      print(msg)
              except CheckError as ex:
                  print("Failure")
                  print(ex)
  
          stage.post_stage()
  
file_path: orion/src/orion/core/cli/db/test.py
imports: import argparse
  import logging
  from orion.core.cli.checks.creation import CreationStage
  from orion.core.cli.checks.operations import OperationsStage
  from orion.core.cli.checks.presence import PresenceStage
  from orion.core.utils.exceptions import CheckError
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types