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","."]
code: def init_pretrained_weights(self, scope_name, **kwargs):
      if self.pretrained_model_dir:
          self._init_from_checkpoint(
              self.pretrained_model_name,
              self.pretrained_model_dir,
              scope_name,
              **kwargs,
          )
      else:
          self.reset_parameters()
  
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 4 for calling the PretrainedMixin obj's underlying member method code with example usage: obj.init_pretrained_weights(scope_name) without return types