> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# test_runs.Utils

> Utility functions and helpers for Test_Runs integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/test_runs/utils.py)

## [EvaluatorNameToIdAndPassFailCriteria](/sdk/python/references/test_runs/utils)

```python theme={null}
@dataclass
class EvaluatorNameToIdAndPassFailCriteria()
```

This class represents an evaluator name to id and pass fail criteria.

#### get\_local\_evaluator\_name\_to\_id\_and\_pass\_fail\_criteria\_map

```python theme={null}
def get_local_evaluator_name_to_id_and_pass_fail_criteria_map(
    evaluators: List[Union[BaseEvaluator, str]]
) -> Dict[str, EvaluatorNameToIdAndPassFailCriteria]
```

This function returns a map of evaluator names to their corresponding ids and pass fail criteria.

#### get\_evaluator\_config\_from\_evaluator\_name\_and\_pass\_fail\_criteria

```python theme={null}
def get_evaluator_config_from_evaluator_name_and_pass_fail_criteria(
        id: str, name: str, pass_fail_criteria: PassFailCriteria) -> Evaluator
```

This function returns an evaluator config from the evaluator name and pass fail criteria.
