class_docstr: This is a feature extraction mixin used to provide saving/loading functionality for sequential and image feature
  extractors.
class_docstr_tok: ["This","is","a","feature","extraction","mixin","used","to","provide","saving\/loading","functionality","for","sequential","and","image","feature","extractors","."]
docstr: Instantiates a feature extractor of type [`~feature_extraction_utils.FeatureExtractionMixin`] from the path to
  a JSON file of parameters.
  
  Args:
      json_file (`str` or `os.PathLike`):
          Path to the JSON file containing the parameters.
  
  Returns:
      A feature extractor of type [`~feature_extraction_utils.FeatureExtractionMixin`]: The feature_extractor
      object instantiated from that JSON file.
docstr_tok: ["Instantiates","a","feature","extractor","of","type","[","`","~feature_extraction_utils.FeatureExtractionMixin","`","]","from","the","path","to","a","JSON","file","of","parameters",".","Args",":","json_file","(","`","str","`","or","`","os.PathLike","`",")",":","Path","to","the","JSON","file","containing","the","parameters",".","Returns",":","A","feature","extractor","of","type","[","`","~feature_extraction_utils.FeatureExtractionMixin","`","]",":","The","feature_extractor","object","instantiated","from","that","JSON","file","."]
code: def from_json_file(
      cls, json_file: Union[str, os.PathLike]
  ) -> PreTrainedFeatureExtractor:
      """
      Instantiates a feature extractor of type [`~feature_extraction_utils.FeatureExtractionMixin`] from the path to
      a JSON file of parameters.
  
      Args:
          json_file (`str` or `os.PathLike`):
              Path to the JSON file containing the parameters.
  
      Returns:
          A feature extractor of type [`~feature_extraction_utils.FeatureExtractionMixin`]: The feature_extractor
          object instantiated from that JSON file.
      """
      with open(json_file, "r", encoding="utf-8") as reader:
          text = reader.read()
      feature_extractor_dict = json.loads(text)
      return cls(**feature_extractor_dict)
  
imports: import copy
  import json
  import os
  import warnings
  from collections import UserDict
  from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union
  import numpy
  from .dynamic_module_utils import custom_object_save
  from .utils import FEATURE_EXTRACTOR_NAME, PushToHubMixin, TensorType, add_model_info_to_auto_map, cached_file, copy_func, download_url, is_flax_available, is_jax_tensor, is_numpy_array, is_offline_mode, is_remote_url, is_tf_available, is_torch_available, is_torch_device, is_torch_dtype, logging, requires_backends
label_desc: Use image node_id 8 for calling the FeatureExtractionMixin obj's underlying member method code with example usage: obj.from_json_file(cls, json_file) and returns: cls