code: def list_interfaces(module):
      """Return a list with the names of the Interface subclasses inside
      the given module.
      """
      iface_names = []
      for k, v in sorted(list(module.__dict__.items())):
          if inspect.isclass(v) and issubclass(v, Interface):
              iface_names.append(k)
      return iface_names
  
imports: import inspect
  import importlib
  from ..interfaces.base import Interface
label_desc: Use image node_id 2 for calling a global function with example usage: list_interfaces(module) and returns: iface_names