class_docstr: Data Model
class_docstr_tok: ["Data","Model"]
code: def validate(self, schema=None):
      if _CustomValidator is None:
          jsonschema.validate(
              self.to_dict(),
              schema or self._schema,
              types=dict(
                  array=(list, tuple), integer=six.integer_types
              ),
          )
      else:
          jsonschema.validate(
              self.to_dict(),
              schema or self._schema,
              cls=_CustomValidator,
          )
  
imports: import keyword
  import enum
  import json
  from datetime import datetime
  import jsonschema
  from enum import Enum
  import six
label_desc: Use image node_id 4 for calling the DataModel obj's underlying member method code with example usage: obj.validate(schema) without return types