code: def _test_cupy_available(self):
      returncode, stdoutdata, stderrdata = _run_script(
          """
  import cupy
  print(cupy.is_available())"""
      )
      assert returncode == 0, "stderr: {!r}".format(stderrdata)
      assert stdoutdata in (
          b"True\n",
          b"True\r\n",
          b"False\n",
          b"False\r\n",
      )
      return stdoutdata == b"True\n" or stdoutdata == b"True\r\n"
  
imports: import operator
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import cupy
  import cupyx
label_desc: Use image node_id 2 for calling a global function with example usage: _test_cupy_available() and returns: unknown