code: def test_symmetry_preserving(self, device, dtype):
      PS = 16
      R = 2
      inp = torch.zeros(1, 1, PS, PS, device=device, dtype=dtype)
      inp[
          ..., PS // 2 - R : PS // 2 + R, PS // 2 - R : PS // 2 + R
      ] = 1.0
      SP = kornia.geometry.ScalePyramid(n_levels=3)
      sp, _, _ = SP(inp)
      for _, pyr_level in enumerate(sp):
          for _, img in enumerate(pyr_level):
              img = img.squeeze()
              assert_close(img, img.flip(1))
              assert_close(img, img.flip(2))
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 6 for calling the TestScalePyramid obj's underlying member method code with example usage: obj.test_symmetry_preserving(device, dtype) without return types