code: def __init__(self, resources_dir: str):
      self.nsight_cmd = []
  
      # replace this with better way to get logs dir
      session_dir, runtime_dir = os.path.split(resources_dir)
      self._nsight_dir = Path(session_dir) / "logs" / "nsight"
      try_to_create_directory(self._nsight_dir)
  
file_path: ray/python/ray/_private/runtime_env/nsight.py
imports: import os
  import sys
  import logging
  import asyncio
  import subprocess
  import copy
  from pathlib import Path
  from typing import Tuple, List, Dict, Optional
  from ray._private.runtime_env.context import RuntimeEnvContext
  from ray._private.runtime_env.plugin import RuntimeEnvPlugin
  from ray._private.utils import try_to_create_directory
  from ray.exceptions import RuntimeEnvSetupError
label_desc: Use image node_id 1 to create a new NsightPlugin object from inherited base classes: RuntimeEnvPlugin with example: obj = NsightPlugin(resources_dir)