def METHOD_NAME(input_data, write_to_temp_file):
    rna_mod = input_data.mod['rna']
    rna_mod.obs["filter_with_random"] = np.random.choice([False, True], size=rna_mod.n_obs)
    rna_mod.var["filter_with_random"] = np.random.choice([False, True], size=rna_mod.n_vars)
    return write_to_temp_file(input_data)