code: def convert_points_to_homogeneous(points: Tensor) -> Tensor:
      r"""Function that converts points from Euclidean to homogeneous space.
  
      Args:
          points: the points to be transformed with shape :math:`(*, N, D)`.
  
      Returns:
          the points in homogeneous coordinates :math:`(*, N, D+1)`.
  
      Examples:
          >>> input = tensor([[0., 0.]])
          >>> convert_points_to_homogeneous(input)
          tensor([[0., 0., 1.]])
      """
      if not isinstance(points, Tensor):
          raise TypeError(
              f"Input type is not a Tensor. Got {type(points)}"
          )
      if len(points.shape) < 2:
          raise ValueError(
              f"Input must be at least a 2D tensor. Got {points.shape}"
          )
  
      return pad(points, [0, 1], "constant", 1.0)
  
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 6 for calling a global function with example usage: convert_points_to_homogeneous(points) and returns: pad