code: def test_to_javascript(self):
      js_str = make_viz_data_adapter().to_javascript()
      self.assertEqual(
          js_str[:34], "function getDataAndInfo() { return"
      )
      self.assertEqual(js_str[-3:], "; }")
      json_str = js_str[34:-3]
      self.assertEqual(PAYLOAD, json.loads(json_str))
  
imports: import json
  from unittest import TestCase
  from scattertext.viz import VizDataAdapter
label_desc: Use image node_id 1 for calling the TestVizDataAdapter obj's underlying member method code with example usage: obj.test_to_javascript() without return types