code: def check_permissions(self, request):
          
  
          if not self.predicates:
              return True
  
          # All registered authentication predicates must return True
          return all(
              predicate(request, *self.predicates_params[i])
              for i, predicate in enumerate(self.predicates)
          )
docs: Call the predicate(s) associated with the RPC method, to check if the current request
          can actually call the method.
          Return a boolean indicating if the method should be executed (True) or not (False)