code: def exit_code_from_run_infos(run_infos: t.List[RunInfo]) -> int:
      
      assert run_infos is not None
  
      if not hasattr(run_infos, "__iter__"):
          return run_infos.retcode
  
      rcs = [ri.retcode for ri in run_infos]
      max_rc = max(rcs)
      min_rc = min(rcs)
      if max_rc == 0:
          return min_rc
      return max_rc
docs: Generate a single exit code from a list of RunInfo objects.
  
      Takes a list of RunInfos and returns the exit code that is furthest away
      from 0.
  
      Args:
          run_infos (t.List[RunInfo]): [description]
  
      Returns:
          int: [description]