def METHOD_NAME(target_path):
    destination_dir = target_path[0 : target_path.rfind("/")]
    if not os.path.exists(destination_dir):
        try:
            os.makedirs(destination_dir)
        except:
            assert os.path.exists(destination_dir)
            pass