code: def mkdir_p(dirname):
      """Like "mkdir -p", make a dir recursively, but do nothing if the dir exists
  
      Args:
          dirname(str):
      """
      assert dirname is not None
      if dirname == "" or os.path.isdir(dirname):
          return
      try:
          os.makedirs(dirname)
      except OSError as e:
          if e.errno != errno.EEXIST:
              raise e
  
file_path: tensorpack/tensorpack/utils/fs.py
imports: import errno
  import os
  import tqdm
  from six.moves import urllib
  from .None import logger
  from .utils import execute_only_once
label_desc: Use image node_id 1 for calling a global function with example usage: mkdir_p(dirname) without return types