code: def _torch_load(self, file):
      # Backwards compatibility to Pythia
      _hack_imports()
  
      # Force get_local_path to always redownload checkpoints
      local_path = PathManager.get_local_path(file, force=True)
      with PathManager.open(local_path, "rb") as f:
          if "cuda" in str(self.device):
              return torch.load(f, map_location=self.device)
          else:
              return torch.load(
                  f, map_location=lambda storage, loc: storage
              )
  
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 12 for calling the Checkpoint obj's underlying member method code with example usage: obj._torch_load(file) and returns: torch, torch