def METHOD_NAME(duthosts, enum_rand_one_per_hwsku_hostname):
    yield
    duthost = duthosts[enum_rand_one_per_hwsku_hostname]
    passw_hardening_utils.config_user(duthost=duthost, username=passw_hardening_utils.USERNAME_HISTORY, mode='del')
    duthost.shell('sed -i /^'+passw_hardening_utils.USERNAME_HISTORY+':/d /etc/security/opasswd')