code: def _ensure_arguments_are_provided(expected_types, arguments):
      
      # This function only checks that the arguments were specified,
      # and does not check types. Type checking is done as part of the actual formatting step.
      expected_arg_names = set(six.iterkeys(expected_types))
      provided_arg_names = set(six.iterkeys(arguments))
  
      if expected_arg_names != provided_arg_names:
          missing_args = expected_arg_names - provided_arg_names
          unexpected_args = provided_arg_names - expected_arg_names
          raise GraphQLInvalidArgumentError(u'Missing or unexpected arguments found: '
                                            u'missing {}, unexpected '
                                            u'{}'.format(missing_args, unexpected_args))
docs: Ensure that all arguments expected by the query were actually provided.