code: def ensure_dir_exists(path):
      try:
          os.makedirs(path)
      except OSError as e:
          if e.errno == errno.EEXIST and os.path.isdir(path):
              pass
          else:
              raise
  
file_path: catboost/build/scripts/copy_to_dir.py
imports: import argparse
  import errno
  import sys
  import os
  import shutil
  import tarfile
label_desc: Use image node_id 2 for calling a global function with example usage: ensure_dir_exists(path) without return types