parameters: (node)
docstring: Set the "must split" annotation on the first leaf node.
docstring_summary: Set the "must split" annotation on the first leaf node.
docstring_tokens: Set the must split annotation on the first leaf node .
function: def _SetMustSplitOnFirstLeaf(node):
    """Set the "must split" annotation on the first leaf node."""
  
    def FindFirstLeaf(node):
      if isinstance(node, pytree.Leaf):
        return node
      return FindFirstLeaf(node.children[0])
  
    pytree_utils.SetNodeAnnotation(
        FindFirstLeaf(node), pytree_utils.Annotation.MUST_SPLIT, True)
function_tokens: def _SetMustSplitOnFirstLeaf ( node ) : def FindFirstLeaf ( node ) : if isinstance ( node , pytree . Leaf ) : return node return FindFirstLeaf ( node . children [ 0 ] ) pytree_utils . SetNodeAnnotation ( FindFirstLeaf ( node ) , pytree_utils . Annotation . MUST_SPLIT , True )