code: def test_chemberta_load_weights_from_hf_hub():
      pretrained_model_path = "DeepChem/ChemBERTa-77M-MLM"
      tokenizer_path = "DeepChem/ChemBERTa-77M-MLM"
      model = Chemberta(
          task="regression", tokenizer_path=tokenizer_path
      )
      old_model_id = id(model.model)
      model.load_from_pretrained(
          pretrained_model_path, from_hf_checkpoint=True
      )
      new_model_id = id(model.model)
      # new model's model attribute is an entirely new model initiated by AutoModel.load_from_pretrained
      # and hence it should have a different identifier
      assert old_model_id != new_model_id
  
file_path: deepchem/deepchem/models/torch_models/tests/test_chemberta.py
imports: import os
  import deepchem
  import numpy
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_chemberta_load_weights_from_hf_hub() without return types