code: def _check_se2_r_t_shape(r: So2, t: Tensor) -> None:
      z_shape = r.z.shape
      if ((len(z_shape) == 1) and (len(t.shape) == 2)) or (
          (len(z_shape) == 0) and len(t.shape) == 1
      ):
          check_se2_t_shape(t)
      else:
          raise ValueError(
              f"Invalid input, both the inputs should be either batched or unbatched. Got: {r.z.shape} and {t.shape}"
          )
  
imports: from __future__ import annotations
  from typing import Optional, overload
  from kornia.core import Device, Dtype, Module, Parameter, Tensor, concatenate, pad, rand, stack, tensor, where, zeros_like
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SAME_DEVICES, KORNIA_CHECK_TYPE
  from kornia.geometry.liegroup._utils import check_se2_omega_shape, check_se2_t_shape, check_v_shape
  from kornia.geometry.liegroup.so2 import So2
  from kornia.geometry.vector import Vector2
label_desc: Use image node_id 1 for calling a global function with example usage: _check_se2_r_t_shape(r, t) without return types