code: def load_to_gpu(path: str) -> Dict[str, Any]:
      """
      Similar to load_to_cpu, but load model to cuda
      """
      with PathManager.open(path, "rb") as f:
          state = torch.load(
              f,
              map_location=(
                  lambda s, _: torch.serialization.default_restore_location(
                      s, "cuda"
                  )
              ),
          )
      return state
  
imports: import os
  from collections import deque, OrderedDict
  from typing import Any, Deque, Dict, List, Optional, Tuple
  import torch
  from fairseq import checkpoint_utils, utils
  from pytorch_translate import constants
  from pytorch_translate.file_io import PathManager
label_desc: Use image node_id 4 for calling a global function with example usage: load_to_gpu(path) and returns: state