code: def _js_div_2d(p: Tensor, q: Tensor) -> Tensor:
      # JSD(P || Q)
      m = 0.5 * (p + q)
      return 0.5 * _kl_div_2d(p, m) + 0.5 * _kl_div_2d(q, m)
  
file_path: kornia/kornia/losses/divergence.py
imports: from __future__ import annotations
  import torch
  import torch.nn.functional
  from kornia.core import Tensor
label_desc: Use image node_id 2 for calling a global function with example usage: _js_div_2d(p, q) and returns: unknown