code: def kl_div(
      input: torch.Tensor,
      target: torch.Tensor,
      /,
      *,
      reduction: Optional[str] = "mean",
      log_target=False,
      out: Optional[torch.Tensor] = None,
  ) -> torch.Tensor:
      loss = torch.nn.functional.kl_div(
          input, target, reduction=reduction, log_target=log_target
      )
      return loss
  
file_path: ivy/ivy/functional/backends/torch/experimental/losses.py
imports: from typing import Optional
  import torch
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_device_and_dtypes, with_supported_dtypes
  from .None import backend_version
label_desc: Use image node_id 5 for calling a global function with example usage: kl_div() and returns: loss