code: def insert_arguments_into_query(compilation_result, arguments):
      
      _ensure_arguments_are_provided(compilation_result.input_metadata, arguments)
  
      if compilation_result.language == MATCH_LANGUAGE:
          return insert_arguments_into_match_query(compilation_result, arguments)
      elif compilation_result.language == GREMLIN_LANGUAGE:
          return insert_arguments_into_gremlin_query(compilation_result, arguments)
      elif compilation_result.language == SQL_LANGUAGE:
          return insert_arguments_into_sql_query(compilation_result, arguments)
      else:
          raise AssertionError(u'Unrecognized language in compilation result: '
                               u'{}'.format(compilation_result))
docs: Insert the arguments into the compiled GraphQL query to form a complete query.
  
      Args:
          compilation_result: a CompilationResult object derived from the GraphQL compiler
          arguments: dict, mapping argument name to its value, for every parameter the query expects.
  
      Returns:
          string, a query in the appropriate output language, with inserted argument data