code: def ask_question(question, default=None):
      """Ask a question to the user and receive an answer.
  
      Parameters
      ----------
      question: str
          The question to be asked.
      default: str
          The default value to use if the user enters nothing.
  
      Returns
      -------
      str
          The answer provided by the user.
  
      """
      if default is not None:
          question = f"{question} (default: {default}) "
  
      answer = input(question)
  
      if answer.strip() == "":
          return default
  
      return answer
  
file_path: orion/src/orion/core/cli/db/upgrade.py
imports: import argparse
  import logging
  import sys
  from orion.core.io import experiment_builder
  from orion.core.io.config import ConfigurationError
  from orion.core.io.database.ephemeraldb import EphemeralCollection
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.storage.legacy import Legacy
label_desc: Use image node_id 1 for calling a global function with example usage: ask_question(question, default) and returns: answer, default