class_docstr: Tests :class:`~texar.tf.modules.BERTEncoder` class.
      
docstr: Tests model loading functionality.
code: def test_model_loading(self):
      r"""Tests model loading functionality."""
  
      inputs = tf.placeholder(dtype=tf.int32, shape=[None, None])
  
      for pretrained_model_name in BERTEncoder.available_checkpoints():
          encoder = BERTEncoder(
              pretrained_model_name=pretrained_model_name
          )
          _, _ = encoder(inputs)
  
file_path: texar/tests/modules/encoders/bert_encoder_test.py
imports: import tensorflow
  from texar.tf.modules.encoders.bert_encoder import BERTEncoder
  from texar.tf.utils.test import pretrained_test
label_desc: Use image node_id 1 for calling the BERTEncoderTest obj's underlying member method code with example usage: obj.test_model_loading() without return types