code: def torch_version_is_2() -> bool:
      if TORCH_VERSION is None:
          return False
      if TORCH_VERSION < (2, 0):
          return False
      else:
          return True
  
file_path: nni/nni/common/version.py
imports: from __future__ import annotations
  import logging
  import sys
  import warnings
  import cloudpickle
  import json_tricks
  import numpy
  import yaml
  import nni
label_desc: Use image node_id 4 for calling a global function with example usage: torch_version_is_2() and returns: False, False, True