code: def validate(eps: metadata.EntryPoints):
      """
      Ensure entry points are unique by group and name and validate each.
      """
      consume(
          map(ensure_valid, ensure_unique(eps, key=by_group_and_name))
      )
      return eps
  
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 4 for calling a global function with example usage: validate(eps) and returns: eps