code: def _contains_yieldpoint(children):
      
      if isinstance(children, dict):
          return any(isinstance(i, YieldPoint) for i in children.values())
      if isinstance(children, list):
          return any(isinstance(i, YieldPoint) for i in children)
      return False
docs: Returns True if ``children`` contains any YieldPoints.
  
      ``children`` may be a dict or a list, as used by `MultiYieldPoint`
      and `multi_future`.