def _allocator(value):
    for allocator in ResourceAllocationManager.list_allocators():
        if allocator.name == value:
            return True
    return False
Validate 'allocator' key value.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/_allocator