code: def test_nvrtc(self):
      cuda_ver = cupy.cuda.runtime.runtimeGetVersion()
      options = self._get_options()
      for arch in self._get_cuda_archs():
          with mock.patch(
              "cupy.cuda.compiler._get_arch_for_options_for_nvrtc",
              lambda _: (f"-arch=compute_{arch}", "ptx"),
          ):
              cupy.cuda.compiler.compile_using_nvrtc(
                  _code_nvrtc, options=options
              )
          if cuda_ver >= 11010:
              with mock.patch(
                  "cupy.cuda.compiler._get_arch_for_options_for_nvrtc",
                  lambda _: (f"-arch=sm_{arch}", "cubin"),
              ):
                  cupy.cuda.compiler.compile_using_nvrtc(
                      _code_nvrtc, options=options
                  )
  
file_path: cupy/tests/cupy_tests/core_tests/test_include.py
imports: import os
  from unittest import mock
  import cupy
  import pytest
label_desc: Use image node_id 4 for calling the TestIncludesCompileCUDA obj's underlying member method code with example usage: obj.test_nvrtc() without return types