<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(self, friendly_name, type, permission):
 """ Create a new RoleInstance :param unicode friendly_name: A string to describe the new resource :param RoleInstance.RoleType type: The type of role :param unicode permission: A permission the role should have :returns: Newly created RoleInstance :rtype: twilio.rest.chat.v2.service.role.RoleInstance """

        data = values.of({
            'FriendlyName': friendly_name,
            'Type': type,
            'Permission': serialize.map(permission, lambda e: e),
        })

        payload = self._version.create(
            'POST',
            self._uri,
            data=data,
        )

        return RoleInstance(self._version, payload, service_sid=self._solution['service_sid'], )