code: def test_returns(self):
      np.random.seed(1234)
      A = scipy.sparse.rand(50, 50, 0.1)
  
      s0 = scipy.linalg.norm(A.todense(), 1)
      s1, v = scipy.sparse.linalg.onenormest(A, compute_v=True)
      s2, w = scipy.sparse.linalg.onenormest(A, compute_w=True)
      s3, v2, w2 = scipy.sparse.linalg.onenormest(
          A, compute_w=True, compute_v=True
      )
  
      assert_allclose(s1, s0, rtol=1e-9)
      assert_allclose(
          np.linalg.norm(A.dot(v), 1),
          s0 * np.linalg.norm(v, 1),
          rtol=1e-9,
      )
      assert_allclose(A.dot(v), w, rtol=1e-9)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_
  import pytest
  import scipy.linalg
  import scipy.sparse.linalg
  from scipy.sparse.linalg._onenormest import _onenormest_core, _algorithm_2_2
label_desc: Use image node_id 8 for calling the TestOnenormest obj's underlying member method code with example usage: obj.test_returns() without return types