code: def validate_op_types(model, op_types, logger):
      found_types = set(["default"]) | set(
          map(lambda x: type(x[1]).__name__, model.named_modules())
      )
  
      not_found_op_types = list(set(op_types) - found_types)
      if not_found_op_types:
          logger.warning(
              "op_types %s not found in model", not_found_op_types
          )
  
      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 2 for calling a global function with example usage: validate_op_types(model, op_types, logger) and returns: True