class_docstr: Tests for `_tf_style_*` decorators.
  
  The class decorators, `tf_style_encoding_stage` and
  `tf_style_adaptive_encoding_stage` are tested by the example implementations
  of `EncodingStageInterface` and `AdaptiveEncodingStageInterface`, in
  `test_utils.py`.
class_docstr_tok: ["Tests","for","`","_tf_style_","*","`","decorators",".","The","class","decorators",",","`","tf_style_encoding_stage","`","and","`","tf_style_adaptive_encoding_stage","`","are","tested","by","the","example","implementations","of","`","EncodingStageInterface","`","and","`","AdaptiveEncodingStageInterface","`",",","in","`","test_utils.py","`","."]
docstr: Input Tensors from different tf.Graph instances should raise an error.
docstr_tok: ["Input","Tensors","from","different","tf.Graph","instances","should","raise","an","error","."]
code: def test_decode_decorator_different_graphs(self):
      """Input Tensors from different tf.Graph instances should raise an error."""
      # The test method should not actually use the input values, to ensure the
      # error is not raised in a different way.
      test_decode_fn = encoding_stage._tf_style_decode(
          lambda _, x, p, shape, name: tf.constant(0.0)
      )
      stage = self._get_mock_stage()
      graph_1, graph_2 = tf.Graph(), tf.Graph()
      with graph_1.as_default():
          x = {"val": tf.constant(2.5)}
      with graph_2.as_default():
          params = {"param": tf.constant(10.0)}
      with self.assertRaises(ValueError):
          test_decode_fn(stage, x, params, [], None)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import mock
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import encoding_stage
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 18 for calling the TFStyleEncodeDecodeTest obj's underlying member method code with example usage: obj.test_decode_decorator_different_graphs() without return types