code: def get_predicates(
      node: base_node.BaseNode,
      reg: dsl_context_registry.DslContextRegistry,
  ) -> Sequence[placeholder.Predicate]:
      """Gets all predicates that conditional contexts for the node carry."""
      return tuple(
          c.predicate
          for c in reg.get_contexts(node)
          if isinstance(c, CondContext)
      )
  
file_path: tfx/tfx/dsl/experimental/conditionals/conditional.py
imports: from typing import Sequence
  import attr
  from tfx.dsl.components.base import base_node
  from tfx.dsl.context_managers import dsl_context
  from tfx.dsl.context_managers import dsl_context_manager
  from tfx.dsl.context_managers import dsl_context_registry
  from tfx.dsl.placeholder import placeholder
label_desc: Use image node_id 1 for calling a global function with example usage: get_predicates(node, reg) and returns: tuple