code: def test_cardinality(self, device, dtype, batch_size):
      se: Se3 = self._make_rand_se3d(device, dtype, batch_size)
      assert se.r.q.shape[0] == batch_size
  
imports: import pytest
  import torch
  from kornia.geometry.conversions import euler_from_quaternion, rotation_matrix_to_quaternion
  from kornia.geometry.liegroup import Se3, So3
  from kornia.geometry.quaternion import Quaternion
  from kornia.geometry.vector import Vector3
  from kornia.testing import BaseTester
label_desc: Use image node_id 5 for calling the TestSe3 obj's underlying member method code with example usage: obj.test_cardinality(device, dtype, batch_size) without return types