class_docstr: A test for the dataclass ExecutionSpec.
class_docstr_tok: ["A","test","for","the","dataclass","ExecutionSpec","."]
docstr: Verifies ExecutionSpec with an example.
docstr_tok: ["Verifies","ExecutionSpec","with","an","example","."]
code: def test_spec(self):
      """Verifies ExecutionSpec with an example."""
      subgraph = None
      input_names = {"a", "b", "c"}
      output_names = {"d"}
      is_remote_op = True
  
      spec = execution_spec.ExecutionSpec(
          subgraph, input_names, output_names, is_remote_op
      )
  
      self.assertEqual(spec.subgraph, subgraph)
      self.assertEqual(spec.input_names, input_names)
      self.assertEqual(spec.output_names, output_names)
      self.assertEqual(spec.is_remote_op, is_remote_op)
  
imports: import tensorflow
  from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import execution_spec
label_desc: Use image node_id 1 for calling the ExecutionSpecTest obj's underlying member method code with example usage: obj.test_spec() without return types