def METHOD_NAME(local_user):
    win32api = MagicMock()
    win32api.GetUserNameEx = MagicMock(return_value=f"{local_user.domain}\\{local_user.username}")
    win32api.NameSamCompatible = None
    sys.modules["win32api"] = win32api