import warnings
from tempfile import TemporaryDirectory as TmpDir


def TemporaryDirectory(*args, **kwargs):  # pylint: disable=invalid-name
    """
    This function is deprecated. Please use `tempfile.TemporaryDirectory`
    """
    warnings.warn(
        "This function is deprecated. Please use `tempfile.TemporaryDirectory`",
        DeprecationWarning, stacklevel=2
    )
    return TmpDir(*args, **kwargs)