code: def validate_post(self, msg, expected=None):
      msg = json.loads(msg)
      if expected:
          assert msg == expected
  
file_path: perspective/python/perspective/perspective/tests/manager/test_session.py
imports: import json
  import random
  from perspective import Table, PerspectiveManager
label_desc: Use image node_id 2 for calling the TestPerspectiveSession obj's underlying member method code with example usage: obj.validate_post(msg, expected) without return types