code: def init_extension_entrypoints():
      """Execute all `mars_extensions` entry points with the name `init`
      If extensions have already been initialized, this function does nothing.
      """
      from pkg_resources import iter_entry_points
  
      for entry_point in iter_entry_points("mars_extensions", "init"):
          logger.info("Loading extension: %s", entry_point)
          try:
              func = entry_point.load()
              func()
          except Exception as e:
              msg = "Mars extension module '{}' failed to load due to '{}({})'."
              warnings.warn(
                  msg.format(
                      entry_point.module_name, type(e).__name__, str(e)
                  ),
                  stacklevel=2,
              )
              logger.info(
                  "Extension loading failed for: %s", entry_point
              )
  
imports: import logging
  import warnings
  import functools
label_desc: Use image node_id 1 for calling a global function with example usage: init_extension_entrypoints() without return types