code: def test_trustworthiness(
      input_type, n_samples, n_features, n_components, batch_size
  ):
      centers = round(n_samples * 0.4)
      X, y = make_blobs(
          n_samples=n_samples,
          centers=centers,
          n_features=n_features,
          random_state=32,
      )
  
      X_embedded = UMAP(
          n_components=n_components, random_state=32
      ).fit_transform(X)
      X = X.astype(np.float32)
      X_embedded = X_embedded.astype(np.float32)
  
      sk_score = sklearn_trustworthiness(X, X_embedded)
  
      if input_type == "dataframe":
          X = cudf.DataFrame(X)
          X_embedded = cudf.DataFrame(X_embedded)
  
      cu_score = cuml_trustworthiness(
          X, X_embedded, batch_size=batch_size
      )
  
      assert abs(cu_score - sk_score) <= 1e-3
  
file_path: cuml/python/cuml/tests/test_trustworthiness.py
imports: from cuml.internals.safe_imports import cpu_only_import
  import platform
  import pytest
  from sklearn.manifold import trustworthiness
  from cuml.metrics import trustworthiness
  from sklearn.datasets import make_blobs
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 1 for calling a global function with example usage: test_trustworthiness(input_type, n_samples, n_features, n_components, batch_size) without return types