code: def loss(self, srcs, dsts, labels):
      dots = th.sigmoid(th.sum(srcs * dsts, axis=1))
      dots = th.clamp(dots, min=1e-7, max=1 - 1e-7)
  
      return th.mean(
          -(labels * th.log(dots) + (1 - labels) * th.log(1 - dots))
      )
  
imports: import torch
label_desc: Use image node_id 4 for calling the EGES obj's underlying member method code with example usage: obj.loss(srcs, dsts, labels) and returns: th