code: def is_pytorch_available():
      try:
          importlib.import_module("torch")
          return True
      except ImportError:
          return False
  
imports: import importlib
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: is_pytorch_available() and returns: True, False