code: def encode_with_transformers(self, tokens):
      d = self.wrapped.encode_with_transformer(tokens)
      z = d[self.wrapped.layer]
  
      pooled = d.get("pooled")
      if pooled is not None:
          z.pooled = pooled
  
      return z
  
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 3 for calling the FrozenOpenCLIPEmbedder2WithCustomWords obj's underlying member method code with example usage: obj.encode_with_transformers(tokens) and returns: z