code: def bf16_required_version_check():
      split_version = lambda x: map(int, x.split(".")[:2])
      TORCH_MAJOR, TORCH_MINOR = split_version(torch_info["version"])
      NCCL_MAJOR, NCCL_MINOR = split_version(torch_info["nccl_version"])
      CUDA_MAJOR, CUDA_MINOR = split_version(torch_info["cuda_version"])
  
      if (
          (TORCH_MAJOR > 1 or (TORCH_MAJOR == 1 and TORCH_MINOR >= 10))
          and (CUDA_MAJOR >= 11)
          and (NCCL_MAJOR > 2 or (NCCL_MAJOR == 2 and NCCL_MINOR >= 10))
          and torch_info["bf16_support"]
      ):
          return True
      else:
          return False
  
imports: import torch
  from deepspeed.git_version_info import torch_info
label_desc: Use image node_id 2 for calling a global function with example usage: bf16_required_version_check() and returns: True, False