class_docstr: A MCTS node.
class_docstr_tok: ["A","MCTS","node","."]
docstr: Expands this node, adding child nodes.
docstr_tok: ["Expands","this","node",",","adding","child","nodes","."]
code: def expand(self, prior: np.ndarray):
      """Expands this node, adding child nodes."""
      assert prior.ndim == 1  # Prior should be a flat vector.
      for a, p in enumerate(prior):
          self.children[a] = Node(prior=p)
  
file_path: acme/acme/agents/tf/mcts/search.py
imports: import dataclasses
  from typing import Callable, Dict
  from acme.agents.tf.mcts import models
  from acme.agents.tf.mcts import types
  import numpy
label_desc: Use image node_id 1 for calling the Node obj's underlying member method code with example usage: obj.expand(prior) without return types