docstr: Saves a model configuration into a directory, so that it can be re-loaded using the
  [`from_pretrained`] class method.
docstr_tok: ["Saves","a","model","configuration","into","a","directory",",","so","that","it","can","be","re-loaded","using","the","[","`","from_pretrained","`","]","class","method","."]
code: def _save_config(self, save_directory):
      """
      Saves a model configuration into a directory, so that it can be re-loaded using the
      [`from_pretrained`] class method.
      """
      self.config.save_pretrained(save_directory)
  
imports: import logging
  import os
  import subprocess
  from abc import ABC, abstractmethod
  from pathlib import Path
  from typing import TYPE_CHECKING, Optional, Union
  from huggingface_hub import HfApi, HfFolder
  from transformers import AutoConfig, PretrainedConfig, add_start_docstrings
  from .exporters import TasksManager
  from .utils import CONFIG_NAME
label_desc: Use image node_id 6 for calling the OptimizedModel obj's underlying member method code with example usage: obj._save_config(save_directory) without return types