code: def simple_fixed_prediction_classifier_extra_fields(
      export_path, eval_export_path
  ):
      """Exports a simple fixed prediction classifier that parses extra fields."""
  
      estimator = tf_estimator.Estimator(
          model_fn=fixed_prediction_classifier.model_fn
      )
      estimator.train(
          input_fn=fixed_prediction_classifier.train_input_fn, steps=1
      )
  
      serving_input_receiver_fn = (
          tf_estimator.export.build_parsing_serving_input_receiver_fn(
              feature_spec={
                  "classes": tf.io.VarLenFeature(dtype=tf.string),
                  "scores": tf.io.VarLenFeature(dtype=tf.float32),
              }
          )
      )
      eval_input_receiver_fn = (
          export.build_parsing_eval_input_receiver_fn(
              feature_spec={
                  "classes": tf.io.VarLenFeature(dtype=tf.string),
                  "scores": tf.io.VarLenFeature(dtype=tf.float32),
                  "labels": tf.io.VarLenFeature(dtype=tf.string),
                  "fixed_float": tf.io.FixedLenFeature(
                      [1], dtype=tf.float32
                  ),
                  "fixed_string": tf.io.FixedLenFeature(
                      [1], dtype=tf.string
                  ),
                  "fixed_int": tf.io.FixedLenFeature(
                      [1], dtype=tf.int64
                  ),
                  "var_float": tf.io.VarLenFeature(dtype=tf.float32),
                  "var_string": tf.io.VarLenFeature(dtype=tf.string),
                  "var_int": tf.io.VarLenFeature(dtype=tf.int64),
              },
              label_key="labels",
          )
      )
  
      return util.export_model_and_eval_model(
          estimator=estimator,
          serving_input_receiver_fn=serving_input_receiver_fn,
          eval_input_receiver_fn=eval_input_receiver_fn,
          export_path=export_path,
          eval_export_path=eval_export_path,
      )
  
imports: import tensorflow
  from tensorflow import estimator
  from tensorflow_model_analysis.eval_saved_model import export
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fixed_prediction_classifier
  from tensorflow_model_analysis.eval_saved_model.example_trainers import util
label_desc: Use image node_id 1 for calling a global function with example usage: simple_fixed_prediction_classifier_extra_fields(export_path, eval_export_path) and returns: util