code: def _mkdirs(d):
      
      try:
          os.makedirs(d)
      except OSError as e:
          if e.errno != errno.EEXIST:
              raise
docs: Make all directories up to d.
  
      No exception is raised if d exists.