code: def create(self, messaging_service_sid, friendly_name=values.unset,
                 attributes=values.unset, date_created=values.unset,
                 date_updated=values.unset, created_by=values.unset):
          
          data = values.of({
              'MessagingServiceSid': messaging_service_sid,
              'FriendlyName': friendly_name,
              'Attributes': attributes,
              'DateCreated': serialize.iso8601_datetime(date_created),
              'DateUpdated': serialize.iso8601_datetime(date_updated),
              'CreatedBy': created_by,
          })
  
          payload = self._version.create(
              'POST',
              self._uri,
              data=data,
          )
  
          return SessionInstance(self._version, payload, )
docs: Create a new SessionInstance
  
          :param unicode messaging_service_sid: The unique id of the SMS Service this session belongs to.
          :param unicode friendly_name: The human-readable name of this session.
          :param unicode attributes: An optional string metadata field you can use to store any data you wish.
          :param datetime date_created: The date that this resource was created.
          :param datetime date_updated: The date that this resource was last updated.
          :param unicode created_by: Identity of the session's creator.
  
          :returns: Newly created SessionInstance
          :rtype: twilio.rest.messaging.v1.session.SessionInstance