code: def test_init(self, device, dtype, batch_size):
      s1 = Se2.random(batch_size, device, dtype)
      s2 = Se2(s1.r, s1.t)
      assert isinstance(s2, Se2)
      self.assert_close(s1.r.z, s2.r.z)
      self.assert_close(s1.t, s2.t)
  
imports: import pytest
  import torch
  from kornia.geometry.liegroup import Se2, So2
  from kornia.geometry.vector import Vector2
  from kornia.testing import BaseTester
label_desc: Use image node_id 8 for calling the TestSe2 obj's underlying member method code with example usage: obj.test_init(device, dtype, batch_size) without return types