def METHOD_NAME(self, plugin_key, args=None):
    """
    Set up environment for the specified plugin
    :param plugin_key: str, plugin key
    :param args: dict, optional plugin arguments
    """
    self._plugin_key = plugin_key
    plugins_conf = self.workflow.plugins_conf
    for conf in plugins_conf:
        if conf["name"] == plugin_key:
            raise ValueError(f"This environment already has plugin: {plugin_key}")
    plugins_args = {} if args is None else args
    plugins_conf.append({"name": plugin_key, "args": plugins_args})
    return self