<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_plugin(self, name, options):
 """ Configure a plugin. Args: name (string):
 The name of the plugin. The ``:latest`` tag is optional, and is the default if omitted. options (dict):
 A key-value mapping of options Returns: ``True`` if successful """

        url = self._url('/plugins/{0}/set', name)
        data = options
        if isinstance(data, dict):
            data = ['{0}={1}'.format(k, v) for k, v in six.iteritems(data)]
        res = self._post_json(url, data=data)
        self._raise_for_status(res)
        return True