def METHOD_NAME(self, job_id, tag_name, remove=False):
    kwargs = locals()
    config_data, dsl_data = preprocess(**kwargs)
    if not config_data.pop('remove'):
        return self._post(url='model/model_tag/create', json=config_data)
    else:
        return self._post(url='model/model_tag/remove', json=config_data)