class_docstr: BERT Classification model.
class_docstr_tok: ["BERT","Classification","model","."]
docstr: Updates the train_state with data from restored_train_state.
docstr_tok: ["Updates","the","train_state","with","data","from","restored_train_state","."]
code: def init_from_train_state(
      self,
      train_state: Any,
      restored_train_state: Any,
      restored_model_cfg: ml_collections.ConfigDict,
  ) -> Any:
      """Updates the train_state with data from restored_train_state."""
      return init_bert_from_train_state(
          train_state,
          restored_train_state,
          self.config,
          restored_model_cfg,
      )
  
imports: from typing import Any, Dict
  from absl import logging
  import flax
  import flax.linen
  import jax.numpy
  import ml_collections
  from scenic.common_lib import debug_utils
  from scenic.model_lib.base_models.classification_model import ClassificationModel
  from scenic.model_lib.base_models.regression_model import RegressionModel
  from scenic.projects.baselines.bert import bert_base_model
  from scenic.projects.baselines.bert import layers
label_desc: Use image node_id 2 for calling the BERTClassificationModel obj's underlying member method code with example usage: obj.init_from_train_state(train_state, restored_train_state, restored_model_cfg) and returns: init_bert_from_train_state