code: def mkdir_interactive(dirpath):
      
      from benchbuild.utils.cmd import mkdir
      if os.path.exists(dirpath):
          return
  
      response = ui.ask(
          "The directory {dirname} does not exist yet. "
          "Should I create it?".format(dirname=dirpath),
          default_answer=True,
          default_answer_str="yes")
  
      if response:
          mkdir("-p", dirpath)
          print("Created directory {0}.".format(dirpath))
docs: Create a directory if required.
  
      This will query the user for a confirmation.
  
      Args:
          dirname: The path to create.