code: def _msg_id_for_name(self, msg_name):
          
          if msg_name in self._async_id_stack and self._async_id_stack[msg_name]:
              return self._async_id_stack[msg_name][0]
docs: Find the msg_id for a given request name.
  
          Return None if no message id exists.