code: def encode_embedding_init_text(
      self: sgm.modules.GeneralConditioner, init_text, nvpt
  ):
      res = []
  
      for embedder in [
          embedder
          for embedder in self.embedders
          if hasattr(embedder, "encode_embedding_init_text")
      ]:
          encoded = embedder.encode_embedding_init_text(init_text, nvpt)
          res.append(encoded)
  
      return torch.cat(res, dim=1)
  
file_path: stable-diffusion-webui/modules/sd_models_xl.py
imports: from __future__ import annotations
  import torch
  import sgm.models.diffusion
  import sgm.modules.diffusionmodules.denoiser_scaling
  import sgm.modules.diffusionmodules.discretizer
  from modules import devices, shared, prompt_parser
label_desc: Use image node_id 4 for calling a global function with example usage: encode_embedding_init_text(init_text, nvpt) and returns: torch