code: def create(cls, name, template='High-Security IPS Template'):
          
          try:
              if cls.typeof == 'ips_template_policy' and template is None:
                  fw_template = None
              else:
                  fw_template = IPSTemplatePolicy(template).href
          except ElementNotFound:
              raise LoadPolicyFailed(
                  'Cannot find specified firewall template: {}'.format(template))
          json = {
              'name': name,
              'template': fw_template}
          try:
              return ElementCreator(cls, json)
          except CreateElementFailed as err:
              raise CreatePolicyFailed(err)
docs: Create an IPS Policy
  
          :param str name: Name of policy
          :param str template: name of template
          :raises CreatePolicyFailed: policy failed to create
          :return: IPSPolicy