code: def normalize_pixel_coordinates(
      pixel_coordinates: Tensor,
      height: int,
      width: int,
      eps: float = 1e-8,
  ) -> Tensor:
      r"""Normalize pixel coordinates between -1 and 1.
  
      Normalized, -1 if on extreme left, 1 if on extreme right (x = w-1).
  
      Args:
          pixel_coordinates: the grid with pixel coordinates. Shape can be :math:`(*, 2)`.
          width: the maximum width in the x-axis.
          height: the maximum height in the y-axis.
          eps: safe division by zero.
  
      Return:
          the normalized pixel coordinates with shape :math:`(*, 2)`.
  
      Examples:
          >>> coords = tensor([[50., 100.]])
          >>> normalize_pixel_coordinates(coords, 100, 50)
          tensor([[1.0408, 1.0202]])
      """
      if pixel_coordinates.shape[-1] != 2:
          raise ValueError(
              f"Input pixel_coordinates must be of shape (*, 2). Got {pixel_coordinates.shape}"
          )
  
      # compute normalization factor
      hw: Tensor = stack(
          [
              tensor(
                  width,
                  device=pixel_coordinates.device,
                  dtype=pixel_coordinates.dtype,
              ),
              tensor(
                  height,
                  device=pixel_coordinates.device,
                  dtype=pixel_coordinates.dtype,
              ),
          ]
      )
  
      factor: Tensor = tensor(
          2.0,
          device=pixel_coordinates.device,
          dtype=pixel_coordinates.dtype,
      ) / (hw - 1).clamp(eps)
  
      return factor * pixel_coordinates - 1
  
imports: from __future__ import annotations
  from typing import Optional
  import torch
  import torch.nn.functional
  from kornia.constants import pi
  from kornia.core import Tensor, concatenate, cos, pad, sin, stack, tensor, where, zeros_like
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SHAPE
  from kornia.utils import deprecated
  from kornia.utils.helpers import _torch_inverse_cast
label_desc: Use image node_id 25 for calling a global function with example usage: normalize_pixel_coordinates(pixel_coordinates, height, width, eps) and returns: unknown