code: def random(
      cls,
      shape: Optional[Tuple[int, ...]] = None,
      device: Device = None,
      dtype: Dtype = None,
  ) -> "Vector2":
      if shape is None:
          shape = ()
      return cls(rand((*shape, 2), device=device, dtype=dtype))
  
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 9 for calling the Vector2 obj's underlying member method code with example usage: obj.random(cls, shape, device, dtype) and returns: cls