code: def get_pid(name):
      pids = psutil.process_iter()
      for pid in pids:
          if name in pid.name():
              return pid.pid
  
      return -1
  
file_path: ray/python/ray/tests/test_kill_raylet_signal_log.py
imports: import signal
  import sys
  import psutil
  import pytest
  import ray
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 1 for calling a global function with example usage: get_pid(name) and returns: unknown, pid