code: def get_variable_values(schema, definition_asts, inputs):
      """Prepares an object map of variables of the correct type based on the provided variable definitions and arbitrary input.
      If the input cannot be parsed to match the variable definitions, a GraphQLError will be thrown.
      """
      if inputs is None:
          inputs = {}
  
      values = {}
      for def_ast in definition_asts:
          var_name = def_ast.variable.name.value
          value = get_variable_value(
              schema, def_ast, inputs.get(var_name)
          )
          values[var_name] = value
  
      return values
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/execution/values.py
imports: from collections.abc import Iterable
  import json
  from ..error import GraphQLError
  from ..language.printer import print_ast
  from ..type import GraphQLEnumType, GraphQLInputObjectType, GraphQLList, GraphQLNonNull, GraphQLScalarType, is_input_type
  from ..utils.is_valid_value import is_valid_value
  from ..utils.type_from_ast import type_from_ast
  from ..utils.value_from_ast import value_from_ast
label_desc: Use image node_id 1 for calling a global function with example usage: get_variable_values(schema, definition_asts, inputs) and returns: values