class_docstr: Registry for DslContexts and associated BaseNodes of a pipeline DSL.
  
  DslContextRegistry manages the active DslContexts, their orders, BaseNodes,
  and association between DslContext and BaseNodes during the pipeline DSL
  definition. DslContext and BaseNode always belong to exactly one
  DslContextRegistry (1:n relationship).
class_docstr_tok: ["Registry","for","DslContexts","and","associated","BaseNodes","of","a","pipeline","DSL",".","DslContextRegistry","manages","the","active","DslContexts",",","their","orders",",","BaseNodes",",","and","association","between","DslContext","and","BaseNodes","during","the","pipeline","DSL","definition",".","DslContext","and","BaseNode","always","belong","to","exactly","one","DslContextRegistry","(","1",":","n","relationship",")","."]
docstr: Associates the node to all active contexts.
docstr_tok: ["Associates","the","node","to","all","active","contexts","."]
code: def put_node(self, node: _BaseNode) -> None:
      """Associates the node to all active contexts."""
      self._check_mutable()
      self._all_nodes.append(node)
      for context in self._active_contexts:
          self._nodes_by_context[context].append(node)
  
imports: import collections
  import contextlib
  import threading
  from typing import Any, List, Optional, Iterator
  from tfx.dsl.context_managers import dsl_context
label_desc: Use image node_id 12 for calling the DslContextRegistry obj's underlying member method code with example usage: obj.put_node(node) without return types