def _is_valid_submodule(module_name, submodule_names):
    return ((module_name in submodule_names) or any((module_name.startswith(name) for name in submodule_names)))
def _is_valid_submodule(module_name, submodule_names):
    return ((module_name in submodule_names) or any((module_name.startswith(name) for name in submodule_names)))