code: def check_productions_match(actual_rules, expected_right_sides):
      actual_right_sides = [
          rule.split(" -> ")[1] for rule in actual_rules
      ]
      assert set(actual_right_sides) == set(expected_right_sides)
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers import Token
  from allennlp.semparse import ParsingError
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
  from allennlp.semparse.worlds import WikiTablesWorld
label_desc: Use image node_id 1 for calling a global function with example usage: check_productions_match(actual_rules, expected_right_sides) without return types