code: def test_solve_dposv(problem):
      A, b, size = problem
  
      # square values of A
      A = A * A
  
      # and solve
      xexp, resid, rank, s = np.linalg.lstsq(A, b, rcond=None)
  
      F = A.T @ A
      x = A.T @ b
      dposv(F, x, True)
  
      assert x == approx(xexp, rel=1.0e-3)
  
file_path: lkpy/tests/test_math_solve.py
imports: import logging
  import numpy
  import scipy.linalg
  from pytest import approx
  from lenskit.math.solve import dposv
  from hypothesis import given, settings
  import hypothesis.strategies
label_desc: Use image node_id 2 for calling a global function with example usage: test_solve_dposv(problem) without return types