code: def test_worker_niceness(ray_start_regular):
      @ray.remote
      class PIDReporter:
          def get(self):
              return os.getpid()
  
      reporter = PIDReporter.remote()
      worker_pid = ray.get(reporter.get.remote())
      worker_proc = psutil.Process(worker_pid)
      assert worker_proc.nice() == 15, worker_proc
  
file_path: ray/python/ray/tests/test_advanced_6.py
imports: import logging
  import os
  import platform
  import signal
  import sys
  import time
  import psutil
  import pytest
  import ray
  import ray.cluster_utils
  from ray._private.test_utils import run_string_as_driver_nonblocking, wait_for_condition, wait_for_pid_to_exit
label_desc: Use image node_id 8 for calling a global function with example usage: test_worker_niceness(ray_start_regular) and returns: os