class_docstr: Converts checkpoints to fairseq2.
class_docstr_tok: ["Converts","checkpoints","to","fairseq2","."]
docstr: :param checkpoint:
      The checkpoint to convert.
  
  :returns:
      A converted checkpoint that is compatible with fairseq2.
docstr_tok: [":","param","checkpoint",":","The","checkpoint","to","convert",".",":","returns",":","A","converted","checkpoint","that","is","compatible","with","fairseq2","."]
code: def __call__(self, checkpoint: Dict[str, Any]) -> Dict[str, Any]:
      """
      :param checkpoint:
          The checkpoint to convert.
  
      :returns:
          A converted checkpoint that is compatible with fairseq2.
      """
  
file_path: fairseq2/src/fairseq2/models/utils/checkpoint.py
imports: import re
  import warnings
  from typing import Any, Callable, Dict, Mapping, Optional, Protocol, Union
  import torch
  from torch import Tensor
  from typing_extensions import TypeAlias
  from fairseq2.data.typing import PathLike
  from fairseq2.typing import Device
  from fairseq2.utils.version import _is_pt21_or_greater
label_desc: Use image node_id 1 for calling the CheckpointConverter obj's underlying member method code with example usage: obj.__call__(checkpoint) without return types