def METHOD_NAME(self):
    """
    inits plugin instance.
    """
    if not self.plugin:
        self.pluginmodule = self.m.pyload.plugin_manager.get_plugin(self.pluginname)
        self.pluginclass = getattr(
            self.pluginmodule,
            self.m.pyload.plugin_manager.get_plugin_name(self.pluginname),
        )
        self.plugin = self.pluginclass(self)