parameters: (name)
docstring: try to get the version of the named distribution,
      returs None on failure
docstring_summary: try to get the version of the named distribution,
      returs None on failure
docstring_tokens: try to get the version of the named distribution returs None on failure
function: 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
function_tokens: def distribution_version ( name ) : from pkg_resources import get_distribution , DistributionNotFound try : dist = get_distribution ( name ) except DistributionNotFound : pass else : return dist . version