code: def _extract_features(feature, expected_feature):
      decoder = decode.PartialDecoding(expected_feature)
      return decoder.extract_features(feature)
  
file_path: datasets/tensorflow_datasets/core/decode/partial_decode_test.py
imports: import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import decode
  from tensorflow_datasets.core import features
label_desc: Use image node_id 1 for calling a global function with example usage: _extract_features(feature, expected_feature) and returns: decoder