code: def older_torch():
      """
      Helper to lookup torch version. For versions less than 1.8, torch.dist
      used torch.distributed.group.WORLD as the default group argument instead of None.
      See more details at: https://github.com/pytorch/pytorch/pull/48767
      """
      TORCH_MAJOR = int(torch.__version__.split(".")[0])
      TORCH_MINOR = int(torch.__version__.split(".")[1])
      if TORCH_MAJOR == 1 and TORCH_MINOR < 8:
          return True
      else:
          return False
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/comm/utils.py
imports: import os
  import torch
  import inspect
  from deepspeed.utils import get_caller_func
label_desc: Use image node_id 1 for calling a global function with example usage: older_torch() and returns: True, False