code: def get_first_stage_encoding(
      self, x
  ):  # SDXL's encode_first_stage does everything so get_first_stage_encoding is just there for compatibility
      return x
  
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 3 for calling a global function with example usage: get_first_stage_encoding(x) and returns: x