code: def ensureDir(dir_path):
      d = os.path.dirname(dir_path)
      if not os.path.exists(d):
          os.makedirs(d)
  
file_path: dgl/examples/pytorch/NGCF/NGCF/utility/helper.py
imports: import os
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: ensureDir(dir_path) without return types