docstr: Behind the scenes, when you try to create a torch RNN,
  it just calls torch.RNNBase with an extra parameter.
  This test is to make sure that works correctly.
docstr_tok: ["Behind","the","scenes",",","when","you","try","to","create","a","torch","RNN",",","it","just","calls","torch.RNNBase","with","an","extra","parameter",".","This","test","is","to","make","sure","that","works","correctly","."]
code: def test_rnn_hack(self):
      """
      Behind the scenes, when you try to create a torch RNN,
      it just calls torch.RNNBase with an extra parameter.
      This test is to make sure that works correctly.
      """
      response = self.client.get(
          "/api/config/?class=torch.nn.modules.rnn.LSTM"
      )
      data = json.loads(response.get_data())
      config = data["config"]
      items = config["items"]
  
      assert config["type"] == "lstm"
      assert any(item["name"] == "batch_first" for item in items)
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  import json
  import os
  import pathlib
  import sys
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.service import config_explorer
  from allennlp.service.config_explorer import make_app, _HTML
  from io import open
label_desc: Use image node_id 8 for calling the TestConfigExplorer obj's underlying member method code with example usage: obj.test_rnn_hack() without return types