code: def ensure_params(kty, provided, required):
      
      if not required <= provided:
          missing = required - provided
          raise MissingValue('Missing properties for kty={}, {}'.format(kty, str(list(missing))))
docs: Ensure all required parameters are present in dictionary