code: def test_feat_extract_from_and_save_pretrained(self):
      feat_extract_first = self.feature_extraction_class(
          **self.feat_extract_dict
      )
  
      with tempfile.TemporaryDirectory() as tmpdirname:
          saved_file = feat_extract_first.save_pretrained(tmpdirname)[0]
          check_json_file_has_correct_format(saved_file)
          feat_extract_second = (
              self.feature_extraction_class.from_pretrained(tmpdirname)
          )
  
      self.assertEqual(
          feat_extract_second.to_dict(), feat_extract_first.to_dict()
      )
  
file_path: transformers/tests/test_feature_extraction_common.py
imports: import json
  import os
  import tempfile
  from transformers.testing_utils import check_json_file_has_correct_format
label_desc: Use image node_id 3 for calling the FeatureExtractionSavingTestMixin obj's underlying member method code with example usage: obj.test_feat_extract_from_and_save_pretrained() without return types