code: def normalized_l1(
      pred_displacements: Array,
      gt_displacements: Array,
      eps: float = 1e-6,
      np_backend: PyModule = jnp,
  ) -> Array:
      """Computes the normalized L1 distance between two temporal segments."""
      union = np_backend.maximum(
          pred_displacements[..., 0], gt_displacements[..., 0]
      ) + np_backend.maximum(
          pred_displacements[..., 1], gt_displacements[..., 1]
      )
      l1_norm = np_backend.abs(
          gt_displacements[..., 0] - pred_displacements[..., 0]
      ) + np_backend.abs(
          gt_displacements[..., 1] - pred_displacements[..., 1]
      )
      return l1_norm / (union + eps)
  
file_path: scenic/scenic/projects/unloc/metrics.py
imports: from typing import Any, List, Union
  import jax.numpy
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: normalized_l1(pred_displacements, gt_displacements, eps, np_backend) and returns: unknown