code: def get_suggested_field_names(schema, graphql_type, field_name):
      """For the field name provided, determine if there are any similar field names
      that may be the result of a typo."""
  
      if isinstance(
          graphql_type, (GraphQLInterfaceType, GraphQLObjectType)
      ):
          possible_field_names = list(graphql_type.fields.keys())
  
          return suggestion_list(field_name, possible_field_names)
  
      # Otherwise, must be a Union type, which does not define fields.
      return []
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/fields_on_correct_type.py
imports: from collections import Counter
  from ...error import GraphQLError
  from ...pyutils.ordereddict import OrderedDict
  from ...type.definition import GraphQLInterfaceType, GraphQLObjectType, GraphQLUnionType
  from ...utils.quoted_or_list import quoted_or_list
  from ...utils.suggestion_list import suggestion_list
  from .base import ValidationRule
label_desc: Use image node_id 3 for calling a global function with example usage: get_suggested_field_names(schema, graphql_type, field_name) and returns: list, suggestion_list