code: def validate(schema_name, values):
      try:
          v = Validator(schemas.get(schema_name))
          response = v.validate(values)
  
          if response == False:
              raise ValidationFailed(v.errors)
          return True
      except SchemaError:
          raise ValidationSchemaMissing(schema_name)
  
imports: import os
  import yaml
  from cerberus import Validator
  from cerberus.schema import SchemaError
  from datmo.core.util.exceptions import ValidationFailed, ValidationSchemaMissing
label_desc: Use image node_id 1 for calling a global function with example usage: validate(schema_name, values) and returns: True