code: def mkdtemp(suffix=None, prefix=None, dir=None):
      
  
      suffix = fsnative() if suffix is None else path2fsn(suffix)
      prefix = gettempprefix() if prefix is None else path2fsn(prefix)
      dir = gettempdir() if dir is None else path2fsn(dir)
  
      return tempfile.mkdtemp(suffix, prefix, dir)
docs: Args:
          suffix (`pathlike` or `None`): suffix or `None` to use the default
          prefix (`pathlike` or `None`): prefix or `None` to use the default
          dir (`pathlike` or `None`): temp dir or `None` to use the default
      Returns:
          `fsnative`: A path to a directory
      Raises:
          EnvironmentError
  
      Like :func:`python3:tempfile.mkstemp` but always returns a `fsnative` path.