def GetNotifications(user=None, token=None):
  if not user:
    user = getpass.getuser()
  user_obj = aff4.FACTORY.Open(aff4.ROOT_URN.Add("users").Add(user),
                               token=token)
  return list(user_obj.Get(user_obj.Schema.PENDING_NOTIFICATIONS))
If the wrapped factory doesn't have a L{logPrefix} method,
dataset/ETHPy150Open google/grr/grr/lib/console_utils.py/GetNotifications--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_policies.py/WrapperTestCase.test_factoryLogPrefixFallback