code: def render(eps: metadata.EntryPoints):
      by_group = operator.attrgetter("group")
      groups = itertools.groupby(sorted(eps, key=by_group), by_group)
  
      return "\n".join(
          f"[{group}]\n{render_items(items)}\n"
          for group, items in 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 7 for calling a global function with example usage: render(eps) and returns: str