code: def set_instance(self, index, inst):
          
          return Instance(
              self.__set_instance(index, inst.jobject))
docs: Sets the Instance at the specified location in the dataset.
  
          :param index: the 0-based index of the instance to replace
          :type index: int
          :param inst: the Instance to set
          :type inst: Instance
          :return: the instance
          :rtype: Instance