code: def mkdir_p(path):
      import errno
  
      try:
          os.makedirs(path)
          print("Created directory {}".format(path))
      except OSError as exc:
          if exc.errno == errno.EEXIST and os.path.isdir(path):
              print("Directory {} already exists.".format(path))
          else:
              raise
  
file_path: dgl/examples/pytorch/dgmg/utils.py
imports: import datetime
  import os
  import random
  from pprint import pprint
  import matplotlib.pyplot
  import torch
  import torch.backends.cudnn
  import torch.nn
  import torch.nn.init
label_desc: Use image node_id 1 for calling a global function with example usage: mkdir_p(path) without return types