code: def test_encode(self, feature_spec, ascii_proto, instance, **kwargs):
      schema = schema_utils.schema_from_feature_spec(feature_spec)
      coder = example_proto_coder.ExampleProtoCoder(schema, **kwargs)
      serialized_proto = _ascii_to_binary(ascii_proto)
      self.assertSerializedProtosEqual(
          coder.encode(instance), serialized_proto
      )
  
imports: import copy
  import os
  import pickle
  import sys
  from absl import flags
  import numpy
  import tensorflow
  from tensorflow_transform.coders import example_proto_coder
  from tensorflow_transform import test_case
  from tensorflow_transform.tf_metadata import schema_utils
  from google.protobuf.internal import api_implementation
  from google.protobuf import text_format
label_desc: Use image node_id 3 for calling the ExampleProtoCoderTest obj's underlying member method code with example usage: obj.test_encode(feature_spec, ascii_proto, instance) without return types