code: def get_instrument_interfaces():
      
      interfaces = list()
      for name, adapter in getAdapters((api.get_portal(),), IInstrumentInterface):
          # We need a unique identifier for this instrument interface
          id = "{}.{}".format(adapter.__module__, adapter.__class__.__name__)
          interfaces.append((id, adapter))
  
      # TODO Remove the following code once clasic instrument interfaces migrated
      # Now grab the information (the old way)
      curr_module = sys.modules[__name__]
      for name, obj in inspect.getmembers(curr_module):
          if hasattr(obj, '__name__'):
              obj_name = obj.__name__.replace(__name__, "")
              obj_name = obj_name and obj_name[1:] or ""
              if obj_name in __all__:
                  interfaces.append((obj_name, obj))
      return interfaces
docs: Returns all available instrument interfaces as a list of tuples. Each
      tuple is (id_interface, adapter)