def define_kwargs(config):
    """Define kwargs for the mne functions used by the App 

    Parameters
    ----------
    config: dict
        Dictionary containing all the parameters of the App.

    Returns
    -------
    config: dict
        Dictionary containing all the parameters to apply the mne function.
    """ 

    # Delete keys values in config.json when the App is executed on Brainlife
    if '_app' and '_tid' and '_inputs' and '_outputs' in config.keys():
        del config['_app'], config['_tid'], config['_inputs'], config['_outputs'] 

    # When you run a pipeline rule, another key appeers
    if "_rule" in config.keys():
        del config['_rule'] 

    return config