code: def test_svds_input_validation_which(self, which):
      # Regression test for a github issue.
      # https://github.com/scipy/scipy/issues/4590
      # Function was not checking for eigenvalue type and unintended
      # values could be returned.
      with pytest.raises(ValueError, match="`which` must be in"):
          svds(np.eye(10), which=which, solver=self.solver)
  
imports: import os
  import re
  import copy
  import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_array_equal
  import pytest
  from scipy.linalg import svd, null_space
  from scipy.sparse import csc_matrix, issparse, spdiags, random
  from scipy.sparse.linalg import LinearOperator, aslinearoperator
  from scipy.sparse.linalg import svds
  from scipy.sparse.linalg._eigen.arpack import ArpackNoConvergence
label_desc: Use image node_id 6 for calling the SVDSCommonTests obj's underlying member method code with example usage: obj.test_svds_input_validation_which(which) without return types