code: func (p *PolicyAuthorizer) executeCodePolicy(policy *Sentinel, scope sentinel.ScopeFn) bool {
  	if p.sentinel == nil {
  		return true
  	}
  
  	if policy.Code == "" || scope == nil {
  		return true
  	}
  
  	enforcement := policy.EnforcementLevel
  	if enforcement == "" {
  		enforcement = DefaultPolicyEnforcementLevel
  	}
  
  	return p.sentinel.Execute(policy.Code, enforcement, scope())
  }
docs: // executeCodePolicy will run the associated code policy if code policies are
  // enabled.