code: def test_get_link_fn_from_str(link_function):
      fn = get_link_fn_from_str_or_fn(link_function)
      a = cp.ones(10)
  
      assert cp.all(fn(a) == link_dict[link_function](a))
      assert cp.all(
          fn.inverse(a) == link_dict[link_function].inverse(a)
      )
  
imports: from pylibraft.common.handle import Handle
  from sklearn.linear_model import LinearRegression
  from cuml.datasets import make_regression
  from cuml.testing.utils import ClassEnumerator
  from cuml.explainer.common import model_func_call
  from cuml.explainer.common import link_dict
  from cuml.explainer.common import get_tag_from_model_func
  from cuml.explainer.common import get_link_fn_from_str_or_fn
  from cuml.explainer.common import get_handle_from_cuml_model_func
  from cuml.explainer.common import get_dtype_from_model_func
  from cuml.explainer.common import get_cai_ptr
  from cuml import PCA
  from cuml import LinearRegression
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import cuml
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_link_fn_from_str(link_function) without return types