code: def testMakeExample(self):
      expected = example_pb2.Example()
      expected.features.feature["single_float"].float_list.value[:] = [
          1.0
      ]
      expected.features.feature["single_int"].int64_list.value[:] = [2]
      expected.features.feature["single_str"].bytes_list.value[:] = [
          b"apple"
      ]
      expected.features.feature["multi_float"].float_list.value[:] = [
          4.0,
          5.0,
      ]
      expected.features.feature["multi_int"].int64_list.value[:] = [
          6,
          7,
      ]
      expected.features.feature["multi_str"].bytes_list.value[:] = [
          b"orange",
          b"banana",
      ]
      self.assertEqual(
          expected,
          util.make_example(
              single_float=1.0,
              single_int=2,
              single_str="apple",
              multi_float=[4.0, 5.0],
              multi_int=[6, 7],
              multi_str=["orange", "banana"],
          ),
      )
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/util_test.py
imports: import numpy
  import tensorflow
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.eval_saved_model import util
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 1 for calling the UtilTest obj's underlying member method code with example usage: obj.testMakeExample() without return types