code: def validate_op_names(model, op_names, logger):
      found_names = set(map(lambda x: x[0], model.named_modules()))
  
      not_found_op_names = list(set(op_names) - found_names)
      if not_found_op_names:
          logger.warning(
              "op_names %s not found in model", not_found_op_names
          )
  
      return True
  
file_path: auptimizer/src/aup/compression/torch/utils/config_validation.py
imports: from schema import Schema, And, SchemaError
label_desc: Use image node_id 1 for calling a global function with example usage: validate_op_names(model, op_names, logger) and returns: True