def get_not_object_type_or_name_filter(
    tp_list: _List[_Callable], module_name_list: _List[str]
) -> _Callable[[_Node], bool]:
    """
    Returns a filter which returns True if a node in the final exported graph
    was not created using any modules with names in ``module_name_list`` or objects with
    type in ``tp_list``.
    """
    object_type_filters = [get_object_type_filter(tp) for tp in tp_list]
    module_name_list_filters = [_get_module_name_filter(m) for m in module_name_list]

    def not_object_type_or_name_filter(n: _Node) -> bool:
        return not any(f(n) for f in object_type_filters + module_name_list_filters)

    return not_object_type_or_name_filter

    Returns a filter which returns True if a node in the final exported graph
    was not created using any modules with names in ``module_name_list`` or objects with
    type in ``tp_list``.
    
coremltools/optimize/torch/quantization/_coreml_quantizer_utils.py