code: def _collect_conflicts_within(
      context,
      conflicts,
      cached_fields_and_fragment_names,
      compared_fragments,
      field_map,
  ):
      """Collect all Conflicts "within" one collection of fields."""
  
      # field map is a keyed collection, where each key represents a response
      # name and the value at that key is a list of all fields which provide that
      # response name. For every response name, if there are multiple fields, they
      # must be compared to find a potential conflict.
      for response_name, fields in list(field_map.items()):
          # This compares every field in the list to every other field in this list
          # (except to itself). If the list only has one item, nothing needs to
          # be compared.
          for i, field in enumerate(fields):
              for other_field in fields[i + 1 :]:
                  # within one collection is never mutually exclusive
                  conflict = _find_conflict(
                      context,
                      cached_fields_and_fragment_names,
                      compared_fragments,
                      False,
                      response_name,
                      field,
                      other_field,
                  )
                  if conflict:
                      conflicts.append(conflict)
  
imports: import itertools
  from collections import OrderedDict
  from ...error import GraphQLError
  from ...language import ast
  from ...language.printer import print_ast
  from ...pyutils.pair_set import PairSet
  from ...type.definition import GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, get_named_type, is_leaf_type
  from ...utils.type_comparators import is_equal_type
  from ...utils.type_from_ast import type_from_ast
  from .base import ValidationRule
label_desc: Use image node_id 5 for calling a global function with example usage: _collect_conflicts_within(context, conflicts, cached_fields_and_fragment_names, compared_fragments, field_map) without return types