code: def test_expand_dims_repeated_axis(self):
      for xp in (numpy, cupy):
          a = testing.shaped_arange((2, 2, 2), xp)
          with pytest.raises(ValueError):
              xp.expand_dims(a, (1, 1))
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy.cuda import runtime
  from cupy import testing
label_desc: Use image node_id 22 for calling the TestDims obj's underlying member method code with example usage: obj.test_expand_dims_repeated_axis() without return types