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
Returns the first positive env value found in the `env_keys` list or the default.
intel_extension_for_pytorch/transformers/models/cpu/distributed/dist.py