code: def unix_socket_verify(unix_socket):
      if sys.platform != "win32":
          assert os.path.exists(unix_socket), (
              "Socket not found: " + unix_socket
          )
  
file_path: ray/python/ray/tests/test_tempfile.py
imports: import os
  import shutil
  import sys
  import time
  import pytest
  import ray
  from ray._private.test_utils import check_call_ray, wait_for_condition
label_desc: Use image node_id 2 for calling a global function with example usage: unix_socket_verify(unix_socket) without return types