code: def mkdir_if_no_exists(path, subdirs=[""], is_folder=False):
      if path == "":
          return
      for sd in subdirs:
          if sd != "" or is_folder:
              d = os.path.dirname(os.path.join(path, sd))
          else:
              d = os.path.dirname(path)
          if not os.path.exists(d):
              os.makedirs(d)
  
file_path: dgl/examples/pytorch/hilander/utils/misc.py
imports: import json
  import os
  import pickle
  import random
  import time
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: mkdir_if_no_exists(path, subdirs, is_folder) without return types