code: def register_run_plugins(self, plugin_name, plugin_class):
          
          if plugin_name in self.registered_plugins:
              raise PluginException("Plugin {} already registered! "
                                    "Duplicate plugins?".format(plugin_name))
          self.logger.debug("Registering plugin %s", plugin_name)
          if plugin_class.get_allocators():
              register_func = self.plugin_types[PluginTypes.ALLOCATOR]
              register_func(plugin_name, plugin_class)
          self.registered_plugins.append(plugin_name)
docs: Loads a plugin as a dictionary and attaches needed parts to correct Icetea run
          global parts.
  
          :param plugin_name: Name of the plugins
          :param plugin_class: PluginBase
          :return: Nothing