code: def inject_global_losses(func):
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          kwargs["losses"] = _KERAS_LOSSES
          return func(*args, **kwargs)
  
      return wrapper
  
file_path: segmentation_models/segmentation_models/__init__.py
imports: import os
  import functools
  from .__version__ import __version__
  from .None import base
  from .None import losses
  from .None import metrics
  from .None import utils
  from .backbones.backbones_factory import Backbones
  from .models.unet import Unet
  from .models.pspnet import PSPNet
  from .models.linknet import Linknet
  from .models.fpn import FPN
label_desc: Use image node_id 1 for calling a global function with example usage: inject_global_losses(func) and returns: wrapper, func