code: def tsvd_test_data(request):
      kwargs = {
          "n_components": request.param["n_components"],
          "n_iter": 15,
          "tol": 1e-07,
      }
  
      sk_model = skTruncatedSVD(**kwargs)
      sk_model.fit(X_train_blob, y_train_blob)
  
      input_type = request.param["input_type"]
  
      if input_type == "dataframe":
          modified_y_train = pd.Series(y_train_blob)
      elif input_type == "cudf":
          modified_y_train = cudf.Series(y_train_blob)
      else:
          modified_y_train = to_output_type(y_train_blob, input_type)
  
      return {
          "cuEstimator": TruncatedSVD,
          "kwargs": kwargs,
          "infer_func": "transform",
          "assert_func": check_allclose_without_sign,
          "X_train": to_output_type(X_train_blob, input_type),
          "y_train": modified_y_train,
          "X_test": to_output_type(X_test_blob, input_type),
          "ref_y_test": sk_model.transform(X_test_blob),
      }
  
imports: import platform
  from cuml.testing.test_preproc_utils import to_output_type
  from cuml.testing.utils import array_equal
  from cuml.cluster.hdbscan import HDBSCAN
  from cuml.neighbors import NearestNeighbors
  from cuml.metrics import trustworthiness
  from cuml.metrics import adjusted_rand_score
  from cuml.manifold import UMAP
  from cuml.linear_model import ElasticNet, Lasso, LinearRegression, LogisticRegression, Ridge
  from cuml.internals.memory_utils import using_memory_type
  from cuml.internals.mem_type import MemoryType
  from cuml.decomposition import PCA, TruncatedSVD
  from cuml.common.device_selection import DeviceType, using_device_type
  from hdbscan import HDBSCAN
  from sklearn.neighbors import NearestNeighbors
  from sklearn.linear_model import Ridge
  from sklearn.linear_model import ElasticNet
  from sklearn.linear_model import Lasso
  from sklearn.linear_model import LogisticRegression
  from sklearn.linear_model import LinearRegression
  from sklearn.decomposition import PCA
  from sklearn.decomposition import TruncatedSVD
  from sklearn.datasets import make_regression, make_blobs
  from pytest_cases import fixture_union, fixture_plus
  from importlib import import_module
  import inspect
  import pickle
  from cuml.internals.safe_imports import gpu_only_import
  import itertools
  import pytest
  import cuml
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 20 for calling a global function with example usage: tsvd_test_data(request) and returns: dict