code: def load(eps):
      """
      Given a Distribution.entry_points, produce EntryPoints.
      """
      groups = itertools.chain.from_iterable(
          load_group(value, group) for group, value in eps.items()
      )
      return validate(metadata.EntryPoints(groups))
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_entry_points.py
imports: import functools
  import operator
  import itertools
  from .errors import OptionError
  from .extern.jaraco.text import yield_lines
  from .extern.jaraco.functools import pass_none
  from ._importlib import metadata
  from ._itertools import ensure_unique
  from .extern.more_itertools import consume
label_desc: Use image node_id 5 for calling a global function with example usage: load(eps) and returns: validate