code: def cycle_error_message(fragment_name, spread_names):
      via = (
          " via {}".format(", ".join(spread_names))
          if spread_names
          else ""
      )
      return 'Cannot spread fragment "{}" within itself{}.'.format(
          fragment_name, via
      )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/no_fragment_cycles.py
imports: from ...error import GraphQLError
  from .base import ValidationRule
label_desc: Use image node_id 5 for calling the NoFragmentCycles obj's underlying member method code with example usage: obj.cycle_error_message(fragment_name, spread_names) and returns: str