code: def env_integer(key, default):
      if key in os.environ:
          value = os.environ[key]
          if value.isdigit():
              return int(os.environ[key])
  
          logger.debug(
              f"Found {key} in environment, but value must "
              f"be an integer. Got: {value}. Returning "
              f"provided default {default}."
          )
          return default
      return default
  
file_path: ray/python/ray/_private/ray_constants.py
imports: import logging
  import os
  import sys
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: env_integer(key, default) and returns: default, default, int