code: def validate_op_types_op_names(data):
      if not ("op_types" in data or "op_names" in data):
          raise SchemaError(
              "Either op_types or op_names must be specified."
          )
      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 3 for calling a global function with example usage: validate_op_types_op_names(data) and returns: True