code: def get_loss_fun():
      """Gets the loss function class specified in the config."""
      err_str = "Loss function type '{}' not supported"
      assert cfg.MODEL.LOSS_FUN in _loss_funs.keys(), err_str.format(
          cfg.MODEL.LOSS_FUN
      )
      return _loss_funs[cfg.MODEL.LOSS_FUN]
  
file_path: pycls/pycls/core/builders.py
imports: from pycls.core.config import cfg
  from pycls.core.net import SoftCrossEntropyLoss
  from pycls.models.anynet import AnyNet
  from pycls.models.effnet import EffNet
  from pycls.models.regnet import RegNet
  from pycls.models.resnet import ResNet
  from pycls.models.vit import ViT
label_desc: Use image node_id 2 for calling a global function with example usage: get_loss_fun() and returns: _loss_funs