code: def which_import(request):
      if request.param == "networkx":
          return importlib.import_module("networkx")
      if request.param == "nxcompat":
          return importlib.import_module(
              "cugraph.experimental.compat.nx"
          )
  
file_path: cugraph/python/cugraph/cugraph/tests/nx/test_compat_pr.py
imports: import gc
  import importlib
  import pytest
  import numpy
  from cugraph.testing import utils
  from cugraph.datasets import karate
  from pylibcugraph.testing.utils import gen_fixture_params_product
label_desc: Use image node_id 4 for calling a global function with example usage: which_import(request) and returns: importlib, importlib