def METHOD_NAME(service, mocked_record_name) -> Callable[[Any, Any, Any, Any, Any, Any], List[Case]]:
    def compute_cases(s, login_response, first_name, last_name, middle_name, birth_date):
        record = service.mock_record[mocked_record_name]
        return record.cases
    return compute_cases