code: def load_state_dict(filepath: Path) -> dict:
      """
      Utility function to load a detector's state dictionary from a filepath with `torch.load`.
  
      Parameters
      ----------
      filepath
          Directory to load state dictionary from.
  
      Returns
      -------
      The loaded state dictionary.
      """
      return torch.load(filepath)
  
imports: from pathlib import Path
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: load_state_dict(filepath) and returns: torch