def check_orphan_modules(self, resource_value):
#FIXME: shouldn't pollute the environment like this does.
        not_found = []
        for module in sorted(resource_value):
            if module:
                try:
                    __import__(module)
                except ImportError:
                    not_found.append(module)
        return not_found

    # To be implemented by real allocator.
Tries to add a proto mapping for a property class using a message field.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocator.check_orphan_modules--crossover with--dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/endpoints_proto_datastore/ndb/model.py/EndpointsMetaModel._TryAddMessageField