code: def test_permutation_zero_dim(self):
      for xp in (numpy, cupy):
          xp_random = self._xp_random(xp)
          a = testing.shaped_random((), xp)
          with pytest.raises(IndexError):
              xp_random.permutation(a)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy.testing import _condition
label_desc: Use image node_id 2 for calling the TestPermutations obj's underlying member method code with example usage: obj.test_permutation_zero_dim() without return types