code: def create(cls, elements, role, domain=None):
          
          if not domain:
              domain = AdminDomain('Shared Domain')
          
          return Permission(
              granted_elements=elements, role_ref=role, granted_domain_ref=domain)
docs: Create a permission.
          
          :param list granted_elements: Elements for this permission. Can
              be engines, policies or ACLs
          :type granted_elements: list(str,Element)
          :param str,Role role: role for this permission
          :param str,Element domain: domain to apply (default: Shared Domain)
          :rtype: Permission