code: def is_model_only_checkpoint(checkpoint):
      if is_pl_trainer_checkpoint(checkpoint):
          return "state_dict" not in checkpoint
      else:
          return "model" not in checkpoint
  
file_path: mmf/mmf/utils/checkpoint_updater.py
imports: import logging
  from typing import Any, Dict, Tuple
  import torch
  from mmf.common.registry import registry
label_desc: Use image node_id 3 for calling a global function with example usage: is_model_only_checkpoint(checkpoint) and returns: unknown, unknown