code: def test_random(self, device, dtype, batch_size):
      s = So2.random(batch_size=batch_size, device=device, dtype=dtype)
      s_in_s = s.inverse() * s
      i = So2.identity(
          batch_size=batch_size, device=device, dtype=dtype
      )
      self.assert_close(s_in_s.z.real, i.z.real)
      self.assert_close(s_in_s.z.imag, i.z.imag)
  
imports: import pytest
  import torch
  from kornia.geometry.liegroup import So2
  from kornia.geometry.vector import Vector2
  from kornia.testing import BaseTester
label_desc: Use image node_id 22 for calling the TestSo2 obj's underlying member method code with example usage: obj.test_random(device, dtype, batch_size) without return types