code: def _read_state(state_file):
      with open(state_file, "rt") as f:
          return int(f.read())
  
file_path: ray/release/ray_release/tests/test_run_script.py
imports: import json
  import os
  import subprocess
  import sys
  import tempfile
  import pytest
  from ray_release.result import ExitCode
label_desc: Use image node_id 2 for calling a global function with example usage: _read_state(state_file) and returns: int