def create(self, plan, **kwargs):
        kwargs = self._filter_kwargs(kwargs)
        kwargs['data'] = plan
        kwargs.setdefault("headers", kwargs.get("headers", {}))
        kwargs['headers']['Content-Type'] = 'x-application/yaml'
        try:
            resp = self.client.post(
                self.build_url(base_url="/v1", **kwargs), **kwargs)
        except Exception as e:
            message = vars(e).get('details', str(e))
            raise exceptions.BadRequest(message=message)
        try:
            resp_plan = yamlutils.load(resp.content)
        except __HOLE__ as e:
            raise exc.CommandException(message='Could not load Plan. '
                                       'Reason: %s' % e.message)
        return Plan(self, resp_plan)
dataset/ETHPy150Open openstack/python-solumclient/solumclient/v1/plan.py/PlanManager.create