code: def importlib_metadata_get(group):
      ep = entry_points()
      # 'select' was introduced in Python 3.10 and 'get' got deprecated
      # We don't check for Python version here as by checking with hasattr we
      # also get compatibility with the importlib_metadata package which had a different
      # deprecation cycle for 'get'
      if hasattr(ep, "select"):
          return ep.select(group=group)
      else:
          return ep.get(group, [])
  
imports: from typing import Any, Dict, List, Optional, Generic, TypeVar, cast
  from types import TracebackType
  from importlib.metadata import entry_points
  from toolz import curry
label_desc: Use image node_id 1 for calling a global function with example usage: importlib_metadata_get(group) and returns: ep, ep