code: def div_by_mask_sum(loss: torch.Tensor, mask_sum: torch.Tensor):
      return loss / torch.max(mask_sum, torch.ones_like(mask_sum))
  
file_path: ARKitScenes/depth_upsampling/losses/gradient_loss.py
imports: import torch
  import dataset_keys
label_desc: Use image node_id 1 for calling a global function with example usage: div_by_mask_sum(loss, mask_sum) and returns: unknown