code: def enter_Field(self, node, key, parent, path, ancestors):
      type = self.context.get_type()
  
      if not type:
          return
  
      if is_leaf_type(get_named_type(type)):
          if node.selection_set:
              self.context.report_error(
                  GraphQLError(
                      self.no_subselection_allowed_message(
                          node.name.value, type
                      ),
                      [node.selection_set],
                  )
              )
  
      elif not node.selection_set:
          self.context.report_error(
              GraphQLError(
                  self.required_subselection_message(
                      node.name.value, type
                  ),
                  [node],
              )
          )
  
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 1 for calling the ScalarLeafs obj's underlying member method code with example usage: obj.enter_Field(node, key, parent, path, ancestors) without return types