@utilities.arguments_not_none<EOL><INDENT>def set_provider(self, provider_id):<DEDENT>
if provider_id is None:<EOL><INDENT>raise NullArgument('<STR_LIT>')<EOL><DEDENT>if self.get_provider_metadata().is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if not self.my_osid_object_form._is_valid_id(provider_id):<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = str(provider_id)<EOL>
Sets a provider.

        arg:    provider_id (osid.id.Id): the new provider
        raise:  InvalidArgument - ``provider_id`` is invalid
        raise:  NoAccess - ``Metadata.isReadOnly()`` is ``true``
        raise:  NullArgument - ``provider_id`` is ``null``
        *compliance: mandatory -- This method must be implemented.*