code: def test_permutation_seed1(self, dtype):
      a = testing.shaped_random((10,), cupy, dtype)
      b = cupy.copy(a)
  
      cupy_random = self._xp_random(cupy)
      if self.seed is None:
          cupy_random.seed(0)
      pa = cupy_random.permutation(a)
      cupy_random = self._xp_random(cupy)
      if self.seed is None:
          cupy_random.seed(0)
      pb = cupy_random.permutation(b)
  
      testing.assert_allclose(pa, pb)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy.testing import _condition
label_desc: Use image node_id 5 for calling the TestPermutations obj's underlying member method code with example usage: obj.test_permutation_seed1(dtype) without return types