code: def _ExtractInputs(
      extracts: beam.pvalue.PCollection,
      eval_config: config_pb2.EvalConfig,
  ) -> beam.pvalue.PCollection:
      """Extracts inputs from serialized tf.train.Example protos.
  
      Args:
        extracts: PCollection containing serialized examples under tfma.INPUT_KEY.
        eval_config: Eval config.
  
      Returns:
        PCollection of extracts with additional features, labels, and weights added
        under the keys tfma.FEATURES_KEY, tfma.LABELS_KEY, and
        tfma.EXAMPLE_WEIGHTS_KEY.
      """
      return extracts | "ParseExample" >> beam.Map(
          _ParseExample, eval_config
      )
  
file_path: model-analysis/tensorflow_model_analysis/extractors/legacy_input_extractor.py
imports: import copy
  from typing import Any, Dict, List, Optional, Tuple, Union
  import apache_beam
  import numpy
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.extractors import extractor
  from tensorflow_model_analysis.proto import config_pb2
  from tfx_bsl.coders import example_coder
label_desc: Use image node_id 4 for calling a global function with example usage: _ExtractInputs(extracts, eval_config) and returns: unknown