code: def forward(self, x):
      global_x = torch.mean(x, dim=1, keepdim=True)
      global_x = self.spatial_wise(global_x) + x
      global_x = self.attention_wise(global_x)
      return global_x
  
imports: import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 3 for calling the ScaleSpatialAttention obj's underlying member method code with example usage: obj.forward(x) and returns: global_x