code: def encode_embedding_init_text(self, init_text, nvpt):
      ids = tokenizer.encode(init_text)
      ids = torch.asarray([ids], device=devices.device, dtype=torch.int)
      embedded = self.wrapped.model.token_embedding.wrapped(
          ids
      ).squeeze(0)
  
      return embedded
  
file_path: stable-diffusion-webui/modules/sd_hijack_open_clip.py
imports: import open_clip.tokenizer
  import torch
  from modules import sd_hijack_clip, devices
  from modules.shared import opts
label_desc: Use image node_id 4 for calling the FrozenOpenCLIPEmbedderWithCustomWords obj's underlying member method code with example usage: obj.encode_embedding_init_text(init_text, nvpt) and returns: embedded