code: def _convert_pixels_to_ndc(
      focal_length_px: torch.Tensor,
      principal_point_px: torch.Tensor,
      image_size_wh: torch.Tensor,
  ) -> Tuple[torch.Tensor, torch.Tensor]:
      half_image_size = image_size_wh / 2
      rescale = half_image_size.min()
      principal_point = (half_image_size - principal_point_px) / rescale
      focal_length = focal_length_px / rescale
      return focal_length, principal_point
  
imports: import functools
  import warnings
  from pathlib import Path
  from typing import List, Optional, Tuple, TypeVar, Union
  import numpy
  import torch
  from PIL import Image
  from pytorch3d.io import IO
  from pytorch3d.renderer.cameras import PerspectiveCameras
  from pytorch3d.structures.pointclouds import Pointclouds
label_desc: Use image node_id 22 for calling a global function with example usage: _convert_pixels_to_ndc(focal_length_px, principal_point_px, image_size_wh) and returns: focal_length,  principal_point