code: def test_nsight_not_installed():
      """Test Nsight profile not installed"""
      ray.init()
      session_dir = ray.worker._global_node.get_session_dir_path()
      profilers_dir = Path(session_dir) / "logs" / "nsight"
  
      # test nsight default config
      @ray.remote(runtime_env={"nsight": "default"})
      def test_nsight_not_supported():
          return 0
  
      with pytest.raises(
          RuntimeEnvSetupError, match="nsight is not installed"
      ):
          ray.get(test_nsight_not_supported.remote())
  
      nsys_reports = glob.glob(
          os.path.join(f"{profilers_dir}/*.nsys-rep")
      )
      assert len(nsys_reports) == 0
  
file_path: ray/python/ray/tests/test_runtime_env_profiler.py
imports: import os
  import glob
  import sys
  from pathlib import Path
  import pytest
  import subprocess
  import ray
  from ray._private.runtime_env.nsight import parse_nsight_config
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RuntimeEnvSetupError
label_desc: Use image node_id 3 for calling a global function with example usage: test_nsight_not_installed() and returns: int