class_docstr: A mixin class for all pre-trained classes to inherit.
      
class_docstr_tok: ["A","mixin","class","for","all","pre-trained","classes","to","inherit","."]
docstr: Load the official configuration file and transform it into
  Texar-style hyperparameters.
  
  Args:
      pretrained_model_name (str): Name of the pre-trained model.
      cache_dir (str): Path to the cache directory.
  
  Returns:
      dict: Texar module hyperparameters.
docstr_tok: ["Load","the","official","configuration","file","and","transform","it","into","Texar-style","hyperparameters",".","Args",":","pretrained_model_name","(","str",")",":","Name","of","the","pre-trained","model",".","cache_dir","(","str",")",":","Path","to","the","cache","directory",".","Returns",":","dict",":","Texar","module","hyperparameters","."]
code: def _transform_config(cls, pretrained_model_name, cache_dir):
      r"""Load the official configuration file and transform it into
      Texar-style hyperparameters.
  
      Args:
          pretrained_model_name (str): Name of the pre-trained model.
          cache_dir (str): Path to the cache directory.
  
      Returns:
          dict: Texar module hyperparameters.
      """
      raise NotImplementedError
  
imports: import os
  import sys
  from abc import ABCMeta, abstractmethod
  from pathlib import Path
  from texar.tf.data.data_utils import maybe_download
  from texar.tf.hyperparams import HParams
  from texar.tf.module_base import ModuleBase
label_desc: Use image node_id 8 for calling the PretrainedMixin obj's underlying member method code with example usage: obj._transform_config(cls, pretrained_model_name, cache_dir) without return types