'Returns a random session ID for this flow based on the runner args.
Returns:
A formatted session id URN.'

def GetNewSessionID(self):

    base = self.runner_args.base_session_id
    if (base is None):
        base = (self.runner_args.client_id or aff4.ROOT_URN)
        base = base.Add('flows')
    return rdfvalue.SessionID(base=base, queue=self.runner_args.queue)
