code: def test_encode_non_serialized(
      self, feature_spec, ascii_proto, instance, **kwargs
  ):
      schema = schema_utils.schema_from_feature_spec(feature_spec)
      coder = example_proto_coder.ExampleProtoCoder(
          schema, serialized=False, **kwargs
      )
      proto = _ascii_to_example(ascii_proto)
      self.assertProtoEquals(coder.encode(instance), 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 4 for calling the ExampleProtoCoderTest obj's underlying member method code with example usage: obj.test_encode_non_serialized(feature_spec, ascii_proto, instance) without return types