code: def try_create_dir(self, path):
          
          if not os.path.exists(path):
              os.mkdir(path)
          elif not os.path.isdir(path):
              ValueError("Unable to create directory:" + path + " because a file already exists with the same name.")
docs: Try to create a directory if it doesn't exist and raise error if there is a non-directory with the same name.
          :param path: str path to the directory