code: def _debug_endpoint_port(s):
      try:
          return int(s)
      except ValueError:
          raise SystemExit(
              f"invalid value for debug listen PORT {s!r}"
          ) from None
  
imports: import logging
  import os
  from guild import cli
  from guild import config
  from guild import log
label_desc: Use image node_id 9 for calling a global function with example usage: _debug_endpoint_port(s) and returns: int