code: def __init__(self):
      self.eigs = eigsh
      self.which = ["LM", "SM", "LA", "SA", "BE"]
      self.mattypes = [csr_matrix, aslinearoperator, np.asarray]
      self.sigmas_modes = {
          None: ["normal"],
          0.5: ["normal", "buckling", "cayley"],
      }
  
      # generate matrices
      # these should all be float32 so that the eigenvalues
      # are the same in float32 and float64
      N = 6
      np.random.seed(2300)
      Ar = (
          generate_matrix(N, hermitian=True, pos_definite=True)
          .astype("f")
          .astype("d")
      )
      M = (
          generate_matrix(N, hermitian=True, pos_definite=True)
          .astype("f")
          .astype("d")
      )
      Ac = (
          generate_matrix(
              N, hermitian=True, pos_definite=True, complex_=True
          )
          .astype("F")
          .astype("D")
      )
      Mc = (
          generate_matrix(
              N, hermitian=True, pos_definite=True, complex_=True
          )
          .astype("F")
          .astype("D")
      )
      v0 = np.random.random(N)
  
      # standard symmetric problem
      SS = DictWithRepr("std-symmetric")
      SS["mat"] = Ar
      SS["v0"] = v0
      SS["eval"] = eigh(SS["mat"], eigvals_only=True)
  
      # general symmetric problem
      GS = DictWithRepr("gen-symmetric")
      GS["mat"] = Ar
      GS["bmat"] = M
      GS["v0"] = v0
      GS["eval"] = eigh(GS["mat"], GS["bmat"], eigvals_only=True)
  
      # standard hermitian problem
      SH = DictWithRepr("std-hermitian")
      SH["mat"] = Ac
      SH["v0"] = v0
      SH["eval"] = eigh(SH["mat"], eigvals_only=True)
  
      # general hermitian problem
      GH = DictWithRepr("gen-hermitian")
      GH["mat"] = Ac
      GH["bmat"] = M
      GH["v0"] = v0
      GH["eval"] = eigh(GH["mat"], GH["bmat"], eigvals_only=True)
  
      # general hermitian problem with hermitian M
      GHc = DictWithRepr("gen-hermitian-Mc")
      GHc["mat"] = Ac
      GHc["bmat"] = Mc
      GHc["v0"] = v0
      GHc["eval"] = eigh(GHc["mat"], GHc["bmat"], eigvals_only=True)
  
      self.real_test_cases = [SS, GS]
      self.complex_test_cases = [SH, GH, GHc]
  
imports: import threading
  import itertools
  import numpy
  from numpy.testing import assert_allclose, assert_equal, suppress_warnings
  from pytest import raises
  import pytest
  from numpy import dot, conj, random
  from scipy.linalg import eig, eigh
  from scipy.sparse import csc_matrix, csr_matrix, diags, rand
  from scipy.sparse.linalg import LinearOperator, aslinearoperator
  from scipy.sparse.linalg._eigen.arpack import eigs, eigsh, arpack, ArpackNoConvergence
  from scipy._lib._gcutils import assert_deallocated, IS_PYPY
label_desc: Use image node_id 1 to create a new SymmetricParams object  with example: obj = SymmetricParams()