def _initialize_plugin(self, plugin):
        # Load default attributes
        for attr in defaults.DEFAULTS + ['ORDER']:
            if not hasattr(plugin, attr):
                setattr(plugin, attr, getattr(defaults, attr))

        # Name the plugin
        if not hasattr(plugin, "plugin_name"):
            if hasattr(plugin, "__name__"):
                plugin.plugin_name = plugin.__name__
            elif hasattr(plugin, "__class__"):
                plugin.plugin_name = plugin.__class__.__name__
            else:
                plugin.plugin_name = "anonymous"
:param plugin: A plugin to initialize.
dataset/ETHPy150Open koenbok/Cactus/cactus/plugin/loader.py/BasePluginsLoader._initialize_plugin