code: def tempdir(cls, suffix='', prefix=None, dir=None):
          
          if prefix is None:
              prefix = tempfile.template
          if dir is not None:
              # Note that this is not safe on Python 2
              # There is no work around, apart from not using the tempfile module
              dir = str(Path(dir))
          dirname = tempfile.mkdtemp(suffix, prefix, dir)
          return cls(dirname).absolute()
docs: Returns a new temporary directory.
  
          Arguments are as for :meth:`~rpaths.Path.tempfile`, except that the
          `text` argument is not accepted.
  
          The directory is readable, writable, and searchable only by the
          creating user.
  
          The caller is responsible for deleting the directory when done with it.