def METHOD_NAME(self, task_res: TaskRes) -> Optional[UUID]:
    """Store one TaskRes.
    Usually, the Fleet API calls this for Nodes returning results.
    Stores the TaskRes and, if successful, returns the `task_id` (UUID) of
    the `task_res`. If storing the `task_res` fails, `None` is returned.
    Constraints
    -----------
    If `task_res.task.consumer.anonymous` is `True`, then
    `task_res.task.consumer.node_id` MUST NOT be set (equal 0).
    If `task_res.task.consumer.anonymous` is `False`, then
    `task_res.task.consumer.node_id` MUST be set (not 0)
    """