parameters: (out, user)
return_statement: return user_summary
docstring: Extract the summary for a given user
docstring_summary: Extract the summary for a given user
docstring_tokens: Extract the summary for a given user
function: def get_user_summary(out, user):
      """Extract the summary for a given user"""
      user_summary = None
      for summary in out['summary']:
          if summary.get('user') == user:
              user_summary = summary
  
      if not user_summary:
          raise AssertionError('No summary info found for user: %s' % user)
  
      return user_summary
function_tokens: def get_user_summary ( out , user ) : user_summary = None for summary in out [ 'summary' ] : if summary . get ( 'user' ) == user : user_summary = summary if not user_summary : raise AssertionError ( 'No summary info found for user: %s' % user ) return user_summary