def update_sample(self, sample, changes):
        """Updates a sample.

        """
        check_resource_type(sample, SAMPLE_PATH,
                            message="A sample id is needed.")
        sample_id = get_sample_id(sample)
        if sample_id:
            body = json.dumps(changes)
            return self._update((self.url, sample_id) % "%s%s", body)
dataset/ETHPy150Open bigmlcom/python/bigml/samplehandler.py/SampleHandler.update_sample/swapped operands of `%`