code: def get_int_from_env(env_keys, default):
      """Returns the first positive env value found in the `env_keys` list or the default."""
      for e in env_keys:
          val = int(os.environ.get(e, -1))
          if val >= 0:
              return val
      return default
  
imports: import contextlib
  import json
  import math
  import os
  import warnings
  from dataclasses import asdict, dataclass, field, fields
  from datetime import timedelta
  from enum import Enum
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  from packaging import version
  from .debug_utils import DebugOption
  from .trainer_utils import EvaluationStrategy, FSDPOption, HubStrategy, IntervalStrategy, SchedulerType, ShardedDDPOption
  from .utils import ExplicitEnum, cached_property, ccl_version, get_full_repo_name, is_accelerate_available, is_psutil_available, is_sagemaker_dp_enabled, is_sagemaker_mp_enabled, is_torch_available, is_torch_bf16_cpu_available, is_torch_bf16_gpu_available, is_torch_tf32_available, is_torch_tpu_available, logging, requires_backends, torch_required
label_desc: Use image node_id 2 for calling a global function with example usage: get_int_from_env(env_keys, default) and returns: default, val