code: def point_triangle_distance(p, v0, v1, v2):
      """
      Return shortest distance between a point and a triangle.
  
      Args:
          p: Coordinates of a point.
          v0, v1, v2: Coordinates of the three triangle vertices.
  
      Returns:
          shortest absolute distance from the point to the triangle.
      """
      if p.shape != v0.shape != v1.shape != v2.shape:
          raise ValueError(
              "All points must have the same number of coordinates"
          )
  
      e01_dist = point_line_distance(p, v0, v1)
      e02_dist = point_line_distance(p, v0, v2)
      e12_dist = point_line_distance(p, v1, v2)
      edge_dists_min = torch.min(
          torch.min(e01_dist, e02_dist), e12_dist
      )
  
      return edge_dists_min
  
file_path: pytorch3d/pytorch3d/renderer/mesh/rasterize_meshes.py
imports: from typing import List, Optional, Tuple, Union
  import numpy
  import torch
  from pytorch3d import _C
  from ..utils import parse_image_size
  from .clip import clip_faces, ClipFrustum, convert_clipped_rasterization_to_original_faces
label_desc: Use image node_id 9 for calling a global function with example usage: point_triangle_distance(p, v0, v1, v2) and returns: edge_dists_min