code: function checkForCreateNode(id, name, type, props, children) {
    typeCheckInteger(id, 'id');
    typeCheckString(name, 'name');
    checkNodeType(type);
    checkProps(props);
    checkChildren(children);
  }
docs: /*
  Function to check for errors while creating a new Node