def __init__(self, initializer=None, age=None, payload=None, **kwarg):
    super(GrrMessage, self).__init__(initializer=initializer, age=age, **kwarg)

    if payload is not None:
      self.payload = payload

      # If the payload has a priority, the GrrMessage inherits it.
      try:
        self.priority = payload.priority
      except __HOLE__:
        pass

    if not self.task_id:
      self.task_id = self.GenerateTaskID()
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/flows.py/GrrMessage.__init__