def passes_configs(self) -> dict[str, Any]:
        """Return the pass config that can be merged with the workflow config.

        If any value in the hierarchy is SearchParameter.INVALID, return value would be None.
        If any value in the hierarchy is SearchParameter.IGNORED, return value exclude these parameters.
        """
        passes_configs = OrderedDict()
        for pass_name, (pass_index, params) in self.search_point.values.items():
            passes_configs[pass_name] = OrderedDict(
                [
                    ("index", pass_index),
                    ("params", OrderedDict()),
                ]
            )

            for param_name, (_, param_value) in params.items():
                if param_value == SpecialParamValue.INVALID:
                    return None  # Prune out invalid configurations
                elif param_value != SpecialParamValue.IGNORED:
                    passes_configs[pass_name]["params"][param_name] = param_value

        return passes_configs
Return the pass config that can be merged with the workflow config.

        If any value in the hierarchy is SearchParameter.INVALID, return value would be None.
        If any value in the hierarchy is SearchParameter.IGNORED, return value exclude these parameters.
        
olive/search/search_sample.py