code: def _load_pretrained(self, ckpt):
      model = self.trainer.model
      own_state = model.state_dict()
      ckpt_update_dict = get_pretrained_state_mapping_checkpoint(
          checkpoint=ckpt, model=model, config=self.trainer.config
      )
      for own_attr, attr in ckpt_update_dict.items():
          logger.info("Copying " + own_attr + " from " + attr)
          own_state[own_attr].copy_(ckpt[attr])
      logger.info("Pretrained model loaded")
  
imports: import glob
  import importlib
  import logging
  import os
  import sys
  import warnings
  from typing import Any, Dict
  import torch
  from mmf.common.registry import registry
  from mmf.utils.checkpoint_updater import get_pretrained_state_mapping_checkpoint
  from mmf.utils.configuration import get_mmf_env, load_yaml
  from mmf.utils.distributed import is_main, is_xla, open_if_main, synchronize
  from mmf.utils.download import download_pretrained_model
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_current_device, updir
  from mmf.utils.xla import save_xla_ckpt
  from omegaconf import OmegaConf
label_desc: Use image node_id 9 for calling the Checkpoint obj's underlying member method code with example usage: obj._load_pretrained(ckpt) without return types