code: def forward(self, x):
      for stage in range(self.n_stages):
          x = self.interpolator(x, scale_factor=self.multiplier)
  
      if self.remap_output:
          x = self.channel_mapper(x)
      return x
  
imports: import torch
  import torch.nn
  from functools import partial
  import clip
  from einops import rearrange, repeat
  from transformers import CLIPTokenizer, CLIPTextModel
  import kornia
  from ldm.modules.x_transformer import Encoder, TransformerWrapper
label_desc: Use image node_id 2 for calling the SpatialRescaler obj's underlying member method code with example usage: obj.forward(x) and returns: x