code: def create(cls, name, engines, policy=None, comment=None, **kwargs):
          
          json = {
              'name': name,
              'resources': [eng.href for eng in engines],
              'policy': policy.href if policy is not None else policy,
              'comment': comment}
          
          if kwargs:
              json.update(policy_validation_settings(**kwargs))
          
          return ElementCreator(cls, json)
docs: Create a new validate policy task.
          If a policy is not specified, the engines existing policy will
          be validated. Override default validation settings as kwargs.
          
          :param str name: name of task
          :param engines: list of engines to validate
          :type engines: list(Engine)
          :param Policy policy: policy to validate. Uses the engines assigned
              policy if none specified.
          :param kwargs: see :func:`~policy_validation_settings` for keyword
              arguments and default values.
          :raises ElementNotFound: engine or policy specified does not exist
          :raises CreateElementFailed: failure to create the task
          :return: the task
          :rtype: ValidatePolicyTask