code: def make_example(age, language, label=None):
      example = tf.train.Example()
      example.features.feature["age"].float_list.value.append(age)
      example.features.feature["language"].bytes_list.value.append(
          language
      )
      if label:
          if isinstance(label, list):
              example.features.feature["label"].int64_list.value.extend(
                  label
              )
          else:
              example.features.feature["label"].float_list.value.append(
                  label
              )
      return example
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/example_trainers/util.py
imports: import tensorflow
  from tensorflow_model_analysis.eval_saved_model import export
  from tensorflow_model_analysis.eval_saved_model import util
label_desc: Use image node_id 3 for calling a global function with example usage: make_example(age, language, label) and returns: example