parameters: (self, data)
docstring: Serializes values for a session.
  
          :param data:
              A dict with session data.
          :returns:
              A list with session data.
docstring_summary: Serializes values for a session.
docstring_tokens: Serializes values for a session .
function: def serialize_session(self, data):
          """Serializes values for a session.
  
          :param data:
              A dict with session data.
          :returns:
              A list with session data.
          """
          try:
              assert len(data) >= len(self.session_attributes)
              return [data.get(k) for k in self.session_attributes]
          except AssertionError:
              logging.warning(
                  'Invalid user data: %r. Expected attributes: %r.' %
                  (data, self.session_attributes))
              return None
function_tokens: def serialize_session ( self , data ) : try : assert len ( data ) >= len ( self . session_attributes ) return [ data . get ( k ) for k in self . session_attributes ] except AssertionError : logging . warning ( 'Invalid user data: %r. Expected attributes: %r.' % ( data , self . session_attributes ) ) return None