code: def test_read_from_json_handles_newlines_in_columns(self):
      # The TSV file we use has newlines converted to "\n", not actual escape characters.  We
      # need to be sure we catch this.
      json = {
          "question": [],
          "columns": ["Peak\\nAUS", "Peak\\nNZ"],
          "cells": [["1", "2"], ["3", "4"]],
      }
      graph = TableQuestionKnowledgeGraph.read_from_json(json)
      neighbors = set(graph.neighbors["fb:row.row.peak_aus"])
      assert neighbors == set(["fb:cell.1", "fb:cell.3"])
      neighbors = set(graph.neighbors["fb:row.row.peak_nz"])
      assert neighbors == set(["fb:cell.2", "fb:cell.4"])
      neighbors = set(graph.neighbors["fb:cell.1"])
      assert neighbors == set(["fb:row.row.peak_aus"])
  
      json = {
          "question": [],
          "columns": ["Title"],
          "cells": [["Dance of the\\nSeven Veils"]],
      }
      graph = TableQuestionKnowledgeGraph.read_from_json(json)
      neighbors = set(graph.neighbors["fb:row.row.title"])
      assert neighbors == set(["fb:cell.dance_of_the_seven_veils"])
  
imports: from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
label_desc: Use image node_id 12 for calling the TestTableQuestionKnowledgeGraph obj's underlying member method code with example usage: obj.test_read_from_json_handles_newlines_in_columns() without return types