class_docstr: InstanceDiceLoss on both binary and thresh_bianry.
code: def partial_loss(self, weight, loss):
      return loss / weight + torch.log(torch.sqrt(weight))
  
imports: import sys
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the AdaptiveInstanceDiceLoss obj's underlying member method code with example usage: obj.partial_loss(weight, loss) and returns: unknown