code: def main(argv=None):
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "examples", nargs="*", default=[], choices=names + [[]]
      )
      options = parser.parse_args(argv)
  
      if options.examples:
          run = {name for name in options.examples if name in names}
      else:
          run = set()
  
      prepare_dbs()
  
      for example in names:
          example_db_host = f"{EXAMPLE_DIR}/{example}_db.pkl"
  
          if example in run:
              execute(example)
              print("Moving", MAIN_DB_HOST, "->", example_db_host)
              os.rename(MAIN_DB_HOST, example_db_host)
  
          experiment_names, data = load_data(example_db_host)
          copy_data(data, TMP_DB_HOST)
  
          if example in run:
              plot_exps(experiment_names, TMP_DB_HOST)
  
      print("Moving", TMP_DB_HOST, "->", MAIN_DB_HOST)
      os.rename(TMP_DB_HOST, MAIN_DB_HOST)
  
file_path: orion/docs/scripts/build_database_and_plots.py
imports: import argparse
  import glob
  import os
  import shutil
  import subprocess
  from orion.client import get_experiment
  from orion.storage.base import setup_storage
label_desc: Use image node_id 7 for calling a global function with example usage: main(argv) without return types