code: def collect_torch_env():
      """
      If torch is available, print the torch config.
      """
      try:
          import torch.__config__
  
          return torch.__config__.show()
      except ImportError:
          # compatible with older versions of pytorch
          from torch.utils.collect_env import get_pretty_env_info
  
          return get_pretty_env_info()
  
file_path: vissl/vissl/utils/collect_env.py
imports: import os
  import sys
  from collections import defaultdict
  import numpy
  import PIL
  import pkg_resources
  import torch
  import torchvision
  from tabulate import tabulate
label_desc: Use image node_id 1 for calling a global function with example usage: collect_torch_env() and returns: torch, get_pretty_env_info