<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bulk_edit(self, _fields, ids=None, filter=None, type=None, all=False, testvars=None):
 # pylint: disable=redefined-builtin """Bulk edit a set of configs. :param _fields: :class:`configs.Config <configs.Config>` object :param ids: (optional) Int list of config IDs. :param filter: (optional) String list of filters. :param type: (optional) `union` or `inter` as string. :param all: (optional) Apply to all if bool `True`. :param testvars: (optional) :class:`configs.ConfigTestvars <configs.ConfigTestvars>` list """

        schema = self.EDIT_SCHEMA
        _fields = self.service.encode(schema, _fields, skip_none=True)
        return self.service.bulk_edit(self.base, self.RESOURCE,
                                      _fields, ids=ids, filter=filter, type=type, all=all, testvars=testvars)