original_string: public function updateBatchTags(
          $batchId, array $tagsToAdd, array $tagsToRemove
      ) {
          $json = Serialize::tagsUpdate($tagsToAdd, $tagsToRemove);
          $result = $this->_post($this->_batchUrl($batchId, '/tags'), $json);
          return Deserialize::tags($result);
      }
code: public function updateBatchTags(
          $batchId, array $tagsToAdd, array $tagsToRemove
      ) {
          $json = Serialize::tagsUpdate($tagsToAdd, $tagsToRemove);
          $result = $this->_post($this->_batchUrl($batchId, '/tags'), $json);
          return Deserialize::tags($result);
      }
code_tokens: public function updateBatchTags ( $ batchId , array $ tagsToAdd , array $ tagsToRemove ) { $ json = Serialize :: tagsUpdate ( $ tagsToAdd , $ tagsToRemove ) ; $ result = $ this -> _post ( $ this -> _batchUrl ( $ batchId , '/tags' ) , $ json ) ; return Deserialize :: tags ( $ result ) ; }
docstring: Updates the tags of the given batch.
  
  @param string   $batchId      batch identifier
  @param string[] $tagsToAdd    tags to add to batch
  @param string[] $tagsToRemove tags to remove from batch
  
  @return string[] the updated batch tags
docstring_tokens: Updates the tags of the given batch .