def METHOD_NAME(folder: StrOrPath) -> Tuple[List[StrOrPath], List[StrOrPath]]:
    """
    Return folder contents.
    Parameters
    ----------
    folder : str
        Folder path.
    Returns
    -------
    Tuple[List[StrOrPath], List[StrOrPath]]
        List of folders and files in the folder.
    """
    contents = list(Path(folder).glob("*"))
    files = []
    folders = []
    for file in contents:
        with contextlib.suppress(PermissionError, IOError):
            if file.is_file():
                files.append(file)
            elif file.is_dir():
                folders.append(file)
    return folders, files  # type: ignore[return-value]