class_docstr: 2D Keypoints containing Nx2 or BxNx2 points.
  
  Args:
      keypoints: Raw tensor or a list of Tensors with the Nx2 coordinates
      raise_if_not_floating_point: will raise if the Tensor isn't float
code: def __getitem__(self, key: Union[slice, int, Tensor]) -> "Keypoints":
      new_obj = type(self)(self._data[key], False)
      return new_obj
  
imports: from typing import List, Optional, Tuple, Union, cast
  import torch
  from torch import Size
  from kornia.core import Tensor
  from kornia.geometry import transform_points
label_desc: Use image node_id 2 for calling the Keypoints obj's underlying member method code with example usage: obj.__getitem__(key) and returns: new_obj