class_docstr: Testing the Clarkson Woodruff Transform
code: def test_sketch_rows_norm(self):
      # Given the probabilistic nature of the sketches
      # we run the 'test' multiple times and check that
      # we pass all/almost all the tries
      n_errors = 0
  
      seeds = [
          1755490010,
          934377150,
          1391612830,
          1752708722,
          2008891431,
          1302443994,
          1521083269,
          1501189312,
          1126232505,
          1533465685,
      ]
  
      for seed_ in seeds:
          sketch = clarkson_woodruff_transform(
              self.dense_big_matrix, self.n_sketch_rows, seed_
          )
  
          # We could use other norms (like L2)
          err = np.linalg.norm(self.dense_big_matrix) - np.linalg.norm(
              sketch
          )
          if err > self.threshold:
              n_errors += 1
  
      assert_(n_errors == 0)
  
file_path: catboost/contrib/python/scipy/py2/scipy/linalg/tests/test_sketches.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from scipy.linalg import clarkson_woodruff_transform
  from numpy.testing import assert_
label_desc: Use image node_id 2 for calling the TestClarksonWoodruffTransform obj's underlying member method code with example usage: obj.test_sketch_rows_norm() without return types