code: def save(self, inplace=True):
          
          modified_data = self._modified_data()
          if bool(modified_data):
              task_request_data = {}
              inputs = modified_data.pop('inputs', None)
              execution_settings = modified_data.pop('execution_settings', None)
              task_request_data.update(modified_data)
  
              if inputs:
                  task_request_data['inputs'] = self._serialize_inputs(inputs)
  
              if execution_settings:
                  task_request_data['execution_settings'] = (
                      self._serialize_execution_settings(execution_settings)
                  )
  
              extra = {
                  'resource': self.__class__.__name__,
                  'query': {'id': self.id, 'data': task_request_data}
              }
              logger.info('Saving task', extra=extra)
              data = self._api.patch(url=self._URL['get'].format(id=self.id),
                                     data=task_request_data).json()
              task = Task(api=self._api, **data)
              return task
docs: Saves all modification to the task on the server.
          :param inplace Apply edits on the current instance or get a new one.
          :return: Task instance.