docstr: Test for check_graphs and get_unique_graph.
docstr_tok: ["Test","for","check_graphs","and","get_unique_graph","."]
code: def test_unique_graph(self):
      """Test for check_graphs and get_unique_graph."""
      g0 = ops_lib.Graph()
      with g0.as_default():
          a0 = constant_op.constant(1)
          b0 = constant_op.constant(2)
      g1 = ops_lib.Graph()
      with g1.as_default():
          a1 = constant_op.constant(1)
          b1 = constant_op.constant(2)
      # Same graph, should be fine.
      self.assertIsNone(op_selector.check_graphs(a0, b0))
      # Two different graphs, should assert.
      with self.assertRaises(ValueError):
          op_selector.check_graphs(a0, b0, a1, b1)
      # a0 and b0 belongs to the same graph, should be fine.
      self.assertEqual(op_selector.get_unique_graph([a0, b0]), g0)
      # Different graph, should raise an error.
      with self.assertRaises(ValueError):
          op_selector.get_unique_graph([a0, b0, a1, b1])
  
file_path: tensorflow/tensorflow/python/ops/op_selector_test.py
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import op_selector
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the SelectTest obj's underlying member method code with example usage: obj.test_unique_graph() without return types