code: def misplaced_directive_message(directive_name, location):
      return 'Directive "{}" may not be used on "{}".'.format(
          directive_name, location
      )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/known_directives.py
imports: from ...error import GraphQLError
  from ...language import ast
  from ...type.directives import DirectiveLocation
  from .base import ValidationRule
label_desc: Use image node_id 3 for calling the KnownDirectives obj's underlying member method code with example usage: obj.misplaced_directive_message(directive_name, location) and returns: str