def mktmpdir(tmpdir_factory):
    """Creates temporary directory for unit testing-required files.

    :param tmpdir_factory:
    :returns: tmpdir object
    """
    tmpdir = tmpdir_factory.mktemp('tmp')
    return tmpdir