code: def required_amp_check():
      from importlib.util import find_spec
  
      if find_spec("apex") is None:
          return False
      else:
          return True
  
imports: import torch
  from deepspeed.git_version_info import torch_info
label_desc: Use image node_id 5 for calling a global function with example usage: required_amp_check() and returns: False, True