code: def _collect_conflicts_between_fields_and_fragment(
      context,
      conflicts,
      cached_fields_and_fragment_names,
      compared_fragments,
      are_mutually_exclusive,
      field_map,
      fragment_name,
  ):
      fragment = context.get_fragment(fragment_name)
  
      if not fragment:
          return None
  
      (
          field_map2,
          fragment_names2,
      ) = _get_referenced_fields_and_fragment_names(
          context, cached_fields_and_fragment_names, fragment
      )
  
      # (D) First collect any conflicts between the provided collection of fields
      # and the collection of fields represented by the given fragment.
      _collect_conflicts_between(
          context,
          conflicts,
          cached_fields_and_fragment_names,
          compared_fragments,
          are_mutually_exclusive,
          field_map,
          field_map2,
      )
  
      # (E) Then collect any conflicts between the provided collection of fields
      # and any fragment names found in the given fragment.
      for fragment_name2 in fragment_names2:
          _collect_conflicts_between_fields_and_fragment(
              context,
              conflicts,
              cached_fields_and_fragment_names,
              compared_fragments,
              are_mutually_exclusive,
              field_map,
              fragment_name2,
          )
  
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 2 for calling a global function with example usage: _collect_conflicts_between_fields_and_fragment(context, conflicts, cached_fields_and_fragment_names, compared_fragments, are_mutually_exclusive, field_map, fragment_name) and returns: None