code: def FeatureExtractor(
      additional_extracts: Optional[List[str]] = None,
      excludes: Optional[List[bytes]] = None,
      extract_source: str = constants.FEATURES_PREDICTIONS_LABELS_KEY,
      extract_dest: str = constants.MATERIALIZE_COLUMNS,
  ):
      # pylint: disable=no-value-for-parameter
      return extractor.Extractor(
          stage_name=_FEATURE_EXTRACTOR_STAGE_NAME,
          ptransform=_ExtractFeatures(
              additional_extracts=additional_extracts,
              excludes=excludes,
              source=extract_source,
              dest=extract_dest,
          ),
      )
  
file_path: model-analysis/tensorflow_model_analysis/extractors/legacy_feature_extractor.py
imports: import copy
  from typing import Any, Dict, List, Optional
  from absl import logging
  import apache_beam
  import numpy
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import encoding
  from tensorflow_model_analysis.extractors import extractor
  from tensorflow_model_analysis.utils import util
label_desc: Use image node_id 1 for calling a global function with example usage: FeatureExtractor(additional_extracts, excludes, extract_source, extract_dest) and returns: extractor