code: def is_valid_for(self, entry_point, protocol):
          
          return self.available_for_entry_point(entry_point) and self.available_for_protocol(protocol)
docs: Check if the current function can be executed from a request to the given entry point
          and with the given protocol