def get_tmp_directory(
        cls,
        *,
        prefix: str | None = None,
        suffix: str | None = None,
    ) -> Generator[str, Any, Any]:
        """
        The method allows to create a temporary directory and
        ensures that the parent directory uses the CVAT tmp directory
        """
        params = {}
        for k, v in {
            "prefix": prefix,
            "suffix": suffix,
            "ignore_cleanup_errors": cls.IGNORE_CLEANUP_ERRORS,
        }.items():
            if v is not None:
                params[k] = v

        with tempfile.TemporaryDirectory(**params, dir=cls.TMP_ROOT) as tmp_dir:
            yield tmp_dir

        The method allows to create a temporary directory and
        ensures that the parent directory uses the CVAT tmp directory
        
cvat/apps/dataset_manager/util.py