parameters: ()
return_statement: return {
          group: tuple(eps)
          for group, eps in grouped
          }
docstring: Return EntryPoint objects for all installed packages.
  
      :return: EntryPoint objects for all installed packages.
docstring_summary: Return EntryPoint objects for all installed packages.
docstring_tokens: Return EntryPoint objects for all installed packages .
function: def entry_points():
      """Return EntryPoint objects for all installed packages.
  
      :return: EntryPoint objects for all installed packages.
      """
      eps = itertools.chain.from_iterable(
          dist.entry_points for dist in distributions())
      by_group = operator.attrgetter('group')
      ordered = sorted(eps, key=by_group)
      grouped = itertools.groupby(ordered, by_group)
      return {
          group: tuple(eps)
          for group, eps in grouped
          }
function_tokens: def entry_points ( ) : eps = itertools . chain . from_iterable ( dist . entry_points for dist in distributions ( ) ) by_group = operator . attrgetter ( 'group' ) ordered = sorted ( eps , key = by_group ) grouped = itertools . groupby ( ordered , by_group ) return { group : tuple ( eps ) for group , eps in grouped }