parameters: (resp, caps_passed_in)
docstring: We're about to return from a call; ask all the capabilities that got passed in whether they want to send
         any updates to our caller.
docstring_summary: We're about to return from a call; ask all the capabilities that got passed in whether they want to send
         any updates to our caller.
docstring_tokens: We re about to return from a call ; ask all the capabilities that got passed in whether they want to send any updates to our caller .
function: def fill_out_cap_updates(resp, caps_passed_in):
      """We're about to return from a call; ask all the capabilities that got passed in whether they want to send
         any updates to our caller."""
  
      for cap in caps_passed_in:
          update = cap._get_update()
          if update is not None:
              cu = resp.get('capUpdates')
              if cu is None:
                  cu = resp['capUpdates'] = {}
              cu[json.dumps(cap.scope)] = update
function_tokens: def fill_out_cap_updates ( resp , caps_passed_in ) : for cap in caps_passed_in : update = cap . _get_update ( ) if update is not None : cu = resp . get ( 'capUpdates' ) if cu is None : cu = resp [ 'capUpdates' ] = { } cu [ json . dumps ( cap . scope ) ] = update