code: def get_ast_value(value):
      if isinstance(value, ast.Node):
          return value
      if isinstance(value, str):
          return ast.StringValue(value=value)
      elif isinstance(value, bool):
          return ast.BooleanValue(value=value)
      elif isinstance(value, (float, decimal.Decimal)):
          return ast.FloatValue(value=value)
      elif isinstance(value, int):
          return ast.IntValue(value=value)
      return None
  
imports: from collections.abc import Iterable
  import decimal
  from functools import partial
  from wandb_graphql.language import ast
  from wandb_graphql.language.printer import print_ast
  from wandb_graphql.type import GraphQLField, GraphQLList, GraphQLNonNull, GraphQLEnumType
  from .utils import to_camel_case
label_desc: Use image node_id 2 for calling a global function with example usage: get_ast_value(value) and returns: None, value, ast, ast, ast, ast