code: def mkdir_p(path):
      
  
      try:
          os.makedirs(path)
      except EnvironmentError as exc:
          if exc.errno != errno.EEXIST:
              raise
docs: Create a new directory; ignore if it already exists.