code: def test_shifts(shifts, dtype):
      np.random.seed(0)
      n, k = 70, 10
      A = np.random.random((n, n))
      if shifts is not None and (
          (shifts < 0) or (k > min(n - 1 - shifts, n))
      ):
          with pytest.raises(ValueError):
              _svdp(A, k, shifts=shifts, kmax=5 * k, irl_mode=True)
      else:
          _svdp(A, k, shifts=shifts, kmax=5 * k, irl_mode=True)
  
file_path: scipy/scipy/sparse/linalg/tests/test_propack.py
imports: import os
  import pytest
  import sys
  import numpy
  from numpy.testing import assert_allclose
  from pytest import raises
  from scipy.sparse.linalg._svdp import _svdp
  from scipy.sparse import csr_matrix, csc_matrix
label_desc: Use image node_id 9 for calling a global function with example usage: test_shifts(shifts, dtype) without return types