code: def required(self, method, _dict, require):
          
          for key in require:
              if key not in _dict:
                  raise LunrError("'%s' is required argument for method '%s'"
                                  % (key, method))
docs: Ensure the required items are in the dictionary