code: def _env2int(env_list: List[str], default: int = -1) -> int:
      for e in env_list:
          val = int(os.environ.get(e, -1))
          if val >= 0:
              return val
      return default
  
file_path: torchrec/torchrec/distributed/comm.py
imports: import logging
  import os
  from typing import List, Optional, Tuple
  import torch
  import torch.distributed
label_desc: Use image node_id 1 for calling a global function with example usage: _env2int(env_list, default) and returns: default, val