code: def validate(self, scope: ValidationScope = ValidationScope.all,
                   ctype: ContentType = ContentType.config) -> None:
          
          self.schema_node._validate(self, scope, ctype)
docs: Validate the receiver's value.
  
          Args:
              scope: Scope of the validation (syntax, semantics or all).
              ctype: Receiver's content type.
  
          Raises:
              SchemaError: If the value doesn't conform to the schema.
              SemanticError: If the value violates a semantic constraint.
              YangTypeError: If the value is a scalar of incorrect type.