code: def test_svd_flip():
      x = cp.array(range(-10, 80)).reshape((9, 10))
      u, s, v = cp.linalg.svd(x, full_matrices=False)
      u_true, v_true = _svd_flip(u, v, u_based_decision=True)
      reco_true = cp.dot(u_true * s, v_true)
      u_false, v_false = _svd_flip(u, v, u_based_decision=False)
      reco_false = cp.dot(u_false * s, v_false)
  
      assert array_equal(reco_true, x)
      assert array_equal(reco_false, x)
  
file_path: cuml/python/cuml/tests/test_incremental_pca.py
imports: from cuml.common.exceptions import NotFittedError
  from cuml.testing.utils import array_equal
  from cuml.decomposition.incremental_pca import _svd_flip
  from cuml.decomposition import IncrementalPCA
  from cuml.datasets import make_blobs
  from sklearn.decomposition import IncrementalPCA
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 4 for calling a global function with example usage: test_svd_flip() without return types