code: def orientation_diff(o1: Tensor, o2: Tensor) -> Tensor:
      diff = o2 - o1
      diff[diff < -180] += 360
      diff[diff >= 180] -= 360
      return diff
  
file_path: kornia/kornia/feature/adalam/utils.py
imports: import math
  from typing import Tuple
  import torch
  from kornia.core import Tensor
label_desc: Use image node_id 3 for calling a global function with example usage: orientation_diff(o1, o2) and returns: diff