code: def validate(data):
          
          try:
              return Schema(Validator.SCHEMA).validate(data)
          except SchemaError as exception:
              logging.getLogger(__name__).error(exception)
              return None
docs: Validate data against the schema.
  
          Args:
              data(dict): data structure to validate.
  
          Returns:
              dict: data as provided and defaults where defined in schema.