def METHOD_NAME(run_component,
                                test_data_filter_with_random,
                                random_h5mu_path,
                                original_n_obs,
                                original_n_vars):
    component_output = run_component([
        "--input", test_data_filter_with_random,
        "--output", random_h5mu_path,
        "--obs_filter", "filter_with_random",
        "--var_filter", "filter_with_random",
        "--output_compression", "gzip"
        ])
    assert random_h5mu_path.is_file(), "Output file not found"
    mu_out = mu.read_h5mu(random_h5mu_path)
    new_obs = mu_out.mod['rna'].n_obs
    new_vars = mu_out.mod['rna'].n_vars
    assert new_obs < original_n_obs, "Some RNA obs should have been filtered"
    assert new_vars < original_n_vars,"Some RNA vars should have been filtered"
    assert b"Filtering modality 'rna' observations by .obs['filter_with_random']" in component_output
    assert b"Filtering modality 'rna' variables by .var['filter_with_random']" in component_output