class_docstr: Test class with extra methods for unit-testing TFMA models / metrics.
class_docstr_tok: ["Test","class","with","extra","methods","for","unit-testing","TFMA","models","\/","metrics","."]
docstr: Returns a serialized TF.Example with the fields set accordingly.
  
  Example usage:
    makeExample(name="Tom", age=20, weight=132.5, colors=["red", "green"],
                label=1.0)
  
  Note that field types will be inferred from the type of the arguments, so
  1.0 goes into a float_list, 1 goes into an int64_list, and "one" goes into
  a bytes_list. As the example illustrates, both singleton values and lists
  of values are accepted.
  
  Args:
   **kwargs: key=value pairs specifying the field values for the example.
  
  Returns:
    Serialized TF.Example with the fields set accordingly.
docstr_tok: ["Returns","a","serialized","TF.Example","with","the","fields","set","accordingly",".","Example","usage",":","makeExample","(","name=","''","Tom","''",",","age=20",",","weight=132.5",",","colors=","[","``","red","''",",","``","green","''","]",",","label=1.0",")","Note","that","field","types","will","be","inferred","from","the","type","of","the","arguments",",","so","1.0","goes","into","a","float_list",",","1","goes","into","an","int64_list",",","and","``","one","''","goes","into","a","bytes_list",".","As","the","example","illustrates",",","both","singleton","values","and","lists","of","values","are","accepted",".","Args",":","*","*","kwargs",":","key=value","pairs","specifying","the","field","values","for","the","example",".","Returns",":","Serialized","TF.Example","with","the","fields","set","accordingly","."]
code: def makeExample(self, **kwargs):
      """Returns a serialized TF.Example with the fields set accordingly.
  
      Example usage:
        makeExample(name="Tom", age=20, weight=132.5, colors=["red", "green"],
                    label=1.0)
  
      Note that field types will be inferred from the type of the arguments, so
      1.0 goes into a float_list, 1 goes into an int64_list, and "one" goes into
      a bytes_list. As the example illustrates, both singleton values and lists
      of values are accepted.
  
      Args:
       **kwargs: key=value pairs specifying the field values for the example.
  
      Returns:
        Serialized TF.Example with the fields set accordingly.
      """
      return self._makeExample(**kwargs).SerializeToString()
  
imports: from typing import Any, Dict, List, Optional
  import apache_beam
  from apache_beam.testing import util
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import model_eval_lib
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import load
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.evaluators import legacy_metrics_and_plots_evaluator
  from tensorflow_model_analysis.extractors import extractor
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.slicer import slicer_lib
  from tfx_bsl.tfxio import raw_tf_record
label_desc: Use image node_id 1 for calling the TestCase obj's underlying member method code with example usage: obj.makeExample() and returns: self