code: def bootstrap_environment(
      evadb_dir: Path, evadb_installation_dir: Path
  ):
      """
      Populates necessary configuration for EvaDB to be able to run.
  
      Arguments:
          evadb_dir: path to evadb database directory
          evadb_installation_dir: path to evadb package
      """
  
      config_obj = BASE_EVADB_CONFIG
  
      # creates necessary directories
      config_default_dict = (
          create_directories_and_get_default_config_values(
              Path(evadb_dir), Path(evadb_installation_dir)
          )
      )
  
      assert evadb_dir.exists(), f"{evadb_dir} does not exist"
      assert (
          evadb_installation_dir.exists()
      ), f"{evadb_installation_dir} does not exist"
      config_obj = merge_dict_of_dicts(config_default_dict, config_obj)
      mode = config_obj["mode"]
  
      # set logger to appropriate level (debug or release)
      level = logging.WARN if mode == "release" else logging.DEBUG
      evadb_logger.setLevel(level)
      evadb_logger.debug(f"Setting logging level to: {str(level)}")
  
      # Mainly want to add all the configs to sqlite
  
      return config_obj
  
file_path: evadb/evadb/configuration/bootstrap_environment.py
imports: import logging
  from pathlib import Path
  from typing import Union
  from evadb.configuration.constants import CACHE_DIR, DB_DEFAULT_NAME, FUNCTION_DIR, INDEX_DIR, MODEL_DIR, S3_DOWNLOAD_DIR, TMP_DIR, EvaDB_DATASET_DIR
  from evadb.evadb_config import BASE_EVADB_CONFIG
  from evadb.utils.logging_manager import logger
label_desc: Use image node_id 2 for calling a global function with example usage: bootstrap_environment(evadb_dir, evadb_installation_dir) and returns: config_obj