code: def mkdir(path):
      sub_dir = os.path.dirname(path)
      if not os.path.exists(sub_dir):
          os.makedirs(sub_dir)
  
file_path: PaddleSeg/paddleseg/core/analyse.py
imports: import os
  import json
  import math
  from unittest import result
  import cv2
  import numpy
  import paddle
  from PIL import Image
  from paddleseg import utils
  from paddleseg.core import infer
  from paddleseg.utils import logger, progbar, visualize, metrics
label_desc: Use image node_id 1 for calling a global function with example usage: mkdir(path) without return types