code: def __getitem__(self, idx: Union[slice, int, Tensor]) -> "Vector3":
      return Vector3(self.data[idx, ...])
  
imports: from typing import Optional, Tuple, Union, cast
  from kornia.core import Device, Dtype, Tensor, as_tensor, normalize, rand, stack
  from kornia.core.check import KORNIA_CHECK
  from kornia.core.tensor_wrapper import TensorWrapper, wrap
  from kornia.geometry.linalg import batched_dot_product, batched_squared_norm
label_desc: Use image node_id 3 for calling the Vector3 obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: Vector3