code: def _initialize_single_model(model):
      encoder, decoder = None, None
      if "encoder" in model:
          # initialize encoder
          name = model["encoder"].pop("name")
          encoder = EncoderUniversalRegistry.get_encoder(name)(
              **model["encoder"]
          )
      if "decoder" in model:
          # initialize decoder
          name = model["decoder"].pop("name")
          decoder = DecoderUniversalRegistry.get_decoder(name)(
              **model["decoder"]
          )
          return (encoder, decoder)
  
      if "name" in model:
          # whole model
          name = model.pop("name")
          encoder = ModelUniversalRegistry.get_model(name)(**model)
      return encoder
  
imports: from ....module.model import EncoderUniversalRegistry, DecoderUniversalRegistry, ModelUniversalRegistry
label_desc: Use image node_id 3 for calling a global function with example usage: _initialize_single_model(model) and returns: encoder, encoder,  decoder