code: def spherical_dist_loss(x, y):
      x = F.normalize(x, axis=-1)
      y = F.normalize(y, axis=-1)
      return (
          (x - y)
          .norm(axis=-1)
          .divide(paddle.to_tensor(2.0))
          .asin()
          .pow(2)
          .multiply(paddle.to_tensor(2.0))
      )
  
file_path: PaddleHub/modules/image/text_to_image/disco_diffusion_clip_rn50/reverse_diffusion/model/losses.py
imports: import numpy
  import paddle
  import paddle.nn.functional
label_desc: Use image node_id 4 for calling a global function with example usage: spherical_dist_loss(x, y) and returns: unknown