code: def _parse_pstate(val):
      assert val.startswith("P"), val
      return int(val[1:])
  
imports: import csv
  import io
  import subprocess
  import sys
  from guild import util
  from guild.plugins.summary_util import SummaryPlugin
label_desc: Use image node_id 4 for calling a global function with example usage: _parse_pstate(val) and returns: int