def METHOD_NAME(cls, cfg: CfgNode):
    # registry not used here, since embedding losses are currently local
    # and are not used anywhere else
    return cls._EMBED_LOSS_REGISTRY[cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_LOSS_NAME](cfg)