code: def no_subselection_allowed_message(field, type):
      return 'Field "{}" of type "{}" must not have a sub selection.'.format(
          field, type
      )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/scalar_leafs.py
imports: from ...error import GraphQLError
  from ...type.definition import get_named_type, is_leaf_type
  from .base import ValidationRule
label_desc: Use image node_id 2 for calling the ScalarLeafs obj's underlying member method code with example usage: obj.no_subselection_allowed_message(field, type) and returns: str