code: def get_modules(extension_point):
      modules_to_load = []
      if not _mfext_supported:
          _ext_debug(
              "Not supported for your Python version -- 3.4+ is needed"
          )
          return []
      if extension_point not in _extension_points:
          raise RuntimeError(
              "Metaflow extension point '%s' not supported"
              % extension_point
          )
      _ext_debug(
          "Getting modules for extension point '%s'..."
          % extension_point
      )
      for pkg in _pkgs_per_extension_point.get(extension_point, []):
          _ext_debug(
              "    Found top-level '%s' from '%s'"
              % (pkg.tl_package, pkg.package_name)
          )
          m = _get_extension_config(
              pkg.package_name,
              pkg.tl_package,
              extension_point,
              pkg.config_module,
          )
          if m:
              modules_to_load.append(m)
      _ext_debug("    Loaded %s" % str(modules_to_load))
      return modules_to_load
  
imports: from __future__ import print_function
  import importlib
  import json
  import os
  import re
  import sys
  import types
  from collections import defaultdict, namedtuple
  from importlib.abc import MetaPathFinder, Loader
  from itertools import chain
label_desc: Use image node_id 2 for calling a global function with example usage: get_modules(extension_point) and returns: modules_to_load, list