code: def test_tolerance_float32():
      """Check lobpcg for attainable tolerance in float32."""
      np.random.seed(1234)
      n = 50
      m = 3
      vals = -np.arange(1, n + 1)
      A = diags([vals], [0], (n, n))
      A = A.astype(np.float32)
      X = np.random.randn(n, m)
      X = X.astype(np.float32)
      eigvals, _ = lobpcg(A, X, tol=1e-9, maxiter=50, verbosityLevel=0)
      assert_allclose(eigvals, -np.arange(1, 1 + m), atol=1e-5)
  
imports: import itertools
  import platform
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose, assert_array_less
  import pytest
  from numpy import ones, r_, diag
  from numpy.random import rand
  from scipy.linalg import eig, eigh, toeplitz, orth
  from scipy.sparse import spdiags, diags, eye
  from scipy.sparse.linalg import eigs, LinearOperator
  from scipy.sparse.linalg.eigen.lobpcg import lobpcg
label_desc: Use image node_id 16 for calling a global function with example usage: test_tolerance_float32() without return types