code: def prepare_output_path(output_dir: str, overwrite_output_dir: str):
      """Create output directory or throw error if exists and overwrite_output_dir is false"""
      if (
          os.path.exists(output_dir)
          and os.listdir(output_dir)
          and not overwrite_output_dir
      ):
          raise ValueError(
              "Output directory ({}) already exists and is not empty. Use --overwrite_output_dir "
              "to overcome.".format(output_dir)
          )
      if not os.path.exists(output_dir):
          os.makedirs(output_dir)
  
imports: import argparse
  import gzip
  import io
  import json
  import os
  import posixpath
  import re
  import sys
  import zipfile
  from os import PathLike, makedirs
  from pathlib import Path
  from urllib.parse import urlparse
  import requests
  from tqdm import tqdm
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 24 for calling a global function with example usage: prepare_output_path(output_dir, overwrite_output_dir) without return types