code: def distribution_version(name):
      """try to get the version of the named distribution,
      returs None on failure"""
      from pkg_resources import get_distribution, DistributionNotFound
  
      try:
          dist = get_distribution(name)
      except DistributionNotFound:
          pass
      else:
          return dist.version
  
file_path: catboost/contrib/python/py/py3/py/_vendored_packages/apipkg/__init__.py
imports: import os
  import sys
  from types import ModuleType
  from .version import version
label_desc: Use image node_id 2 for calling a global function with example usage: distribution_version(name) and returns: dist