code: def make_sure_path_exists(self, path):
          
          try:
              os.makedirs(path)
          except OSError as exception:
              if exception.errno != errno.EEXIST:
                  raise
docs: Creates all directories in a path if it does not exist.
  
          :param str path: Path to create.
          :raises Exception: if the path creation attempt hits an error with 
              a code indicating a cause other than pre-existence.