code: def test_cuml_create_estimator_cuinit(cuda_gdb):
      # This tests that our gdb scripting correctly identifies cuInit
      # when it definitely should have been called.
      env = os.environ.copy()
      env["RAPIDS_NO_INITIALIZE"] = "1"
      output = subprocess.run(
          [
              cuda_gdb,
              "-x",
              "-",
              "--args",
              sys.executable,
              "-c",
              "import cupy as cp; a = cp.ones(10)",
          ],
          input=GDB_COMMANDS,
          env=env,
          capture_output=True,
          text=True,
      )
  
      cuInit_called = output.stdout.find("in cuInit ()")
      print("Command output:\n")
      print("*** STDOUT ***")
      print(output.stdout)
      print("*** STDERR ***")
      print(output.stderr)
      assert output.returncode == 0
      assert cuInit_called >= 0
  
imports: import os
  import subprocess
  import sys
  from shutil import which
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_cuml_create_estimator_cuinit(cuda_gdb) without return types