code: def apply(self):
      ldm.modules.attention.CrossAttention.forward = (
          split_cross_attention_forward_v1
      )
      sgm.modules.attention.CrossAttention.forward = (
          split_cross_attention_forward_v1
      )
  
imports: from __future__ import annotations
  import math
  import psutil
  import platform
  import torch
  from torch import einsum
  from ldm.util import default
  from einops import rearrange
  from modules import shared, errors, devices, sub_quadratic_attention
  from modules.hypernetworks import hypernetwork
  import ldm.modules.attention
  import ldm.modules.diffusionmodules.model
  import sgm.modules.attention
  import sgm.modules.diffusionmodules.model
label_desc: Use image node_id 1 for calling the SdOptimizationV1 obj's underlying member method code with example usage: obj.apply() without return types