code: def collect_dep_env(data):
      """
      Collection information about VISSL dependendices and their version
      torchvision, hydra, classy vision, tensorboard, apex
      """
      # torchvision
      try:
          data.append(
              (
                  "torchvision",
                  str(torchvision.__version__)
                  + " @"
                  + os.path.dirname(torchvision.__file__),
              )
          )
      except AttributeError:
          data.append(("torchvision", "unknown"))
  
      try:
          import hydra
  
          data.append(
              (
                  "hydra",
                  str(hydra.__version__)
                  + " @"
                  + os.path.dirname(hydra.__file__),
              )
          )
      except ImportError:
          pass
  
      try:
          import classy_vision
  
          data.append(
              (
                  "classy_vision",
                  str(classy_vision.__version__)
                  + " @"
                  + os.path.dirname(classy_vision.__file__),
              )
          )
      except ImportError:
          pass
  
      try:
          import tensorboard
  
          data.append(("tensorboard", tensorboard.__version__))
      except ImportError:
          pass
  
      try:
          import apex  # noqa
  
          data.append(
              (
                  "apex",
                  str(pkg_resources.get_distribution("apex").version)
                  + " @"
                  + os.path.dirname(apex.__file__),
              )
          )
      except ImportError:
          data.append(("apex", "unknown"))
  
      try:
          import cv2
  
          data.append(("cv2", cv2.__version__))
      except ImportError:
          pass
  
      return data
  
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 4 for calling a global function with example usage: collect_dep_env(data) and returns: data