code: def check_cmd_stderr(cmd):
      return subprocess.run(cmd, stderr=subprocess.PIPE).stderr.decode(
          "utf-8"
      )
  
file_path: ray/python/ray/tests/test_node_labels.py
imports: import os
  import sys
  import pytest
  import subprocess
  import ray
  from ray.cluster_utils import AutoscalingCluster
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 1 for calling a global function with example usage: check_cmd_stderr(cmd) and returns: subprocess