For the field name provided, determine if there are any similar field names
    that may be the result of a typo.

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 []