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: Register this class with a given auto class. This should only be used for custom feature extractors as the ones
  in the library are already mapped with `AutoFeatureExtractor`.
  
  <Tip warning={true}>
  
  This API is experimental and may have some slight breaking changes in the next releases.
  
  </Tip>
  
  Args:
      auto_class (`str` or `type`, *optional*, defaults to `"AutoFeatureExtractor"`):
          The auto class to register this new feature extractor with.
docstr_tok: ["Register","this","class","with","a","given","auto","class",".","This","should","only","be","used","for","custom","feature","extractors","as","the","ones","in","the","library","are","already","mapped","with","`","AutoFeatureExtractor","`",".","<","Tip","warning=","{","true","}",">","This","API","is","experimental","and","may","have","some","slight","breaking","changes","in","the","next","releases",".","<","\/Tip",">","Args",":","auto_class","(","`","str","`","or","`","type","`",",","*","optional","*",",","defaults","to","`","``","AutoFeatureExtractor","''","`",")",":","The","auto","class","to","register","this","new","feature","extractor","with","."]
code: def register_for_auto_class(cls, auto_class="AutoFeatureExtractor"):
      """
      Register this class with a given auto class. This should only be used for custom feature extractors as the ones
      in the library are already mapped with `AutoFeatureExtractor`.
  
      <Tip warning={true}>
  
      This API is experimental and may have some slight breaking changes in the next releases.
  
      </Tip>
  
      Args:
          auto_class (`str` or `type`, *optional*, defaults to `"AutoFeatureExtractor"`):
              The auto class to register this new feature extractor with.
      """
      if not isinstance(auto_class, str):
          auto_class = auto_class.__name__
  
      import transformers.models.auto as auto_module
  
      if not hasattr(auto_module, auto_class):
          raise ValueError(f"{auto_class} is not a valid auto class.")
  
      cls._auto_class = auto_class
  
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 12 for calling the FeatureExtractionMixin obj's underlying member method code with example usage: obj.register_for_auto_class(cls, auto_class) without return types