code: def required_subselection_message(field, type):
      return (
          'Field "{}" of type "{}" must 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 3 for calling the ScalarLeafs obj's underlying member method code with example usage: obj.required_subselection_message(field, type) and returns: str