code: def get_dependent_channels(
      placeholder: ph.Placeholder,
  ) -> Iterator[channel.Channel]:
      """Yields all Channels used in/ the given placeholder."""
      for p in placeholder.traverse():
          if isinstance(p, ph.ChannelWrappedPlaceholder):
              yield typing.cast(channel.Channel, p.channel)
  
imports: import typing
  from typing import Callable, Dict, Iterable, Iterator, List, Optional, Sequence, Set, Type, cast
  from tfx.dsl.placeholder import placeholder
  from tfx.proto.orchestration import placeholder_pb2
  from tfx.types import artifact
  from tfx.types import channel
label_desc: Use image node_id 7 for calling a global function with example usage: get_dependent_channels(placeholder) without return types