code: def validate_symmetric_solution(soln, cost, exp_soln, exp_cost):
      assert soln == exp_soln or soln == exp_soln[::-1]
      assert cost == exp_cost
  
imports: import random
  import pytest
  import networkx
  import networkx.algorithms.approximation
label_desc: Use image node_id 5 for calling a global function with example usage: validate_symmetric_solution(soln, cost, exp_soln, exp_cost) without return types