original_docstring: 
      Helper function to pull relevant role data
      
docstring: Helper function to pull relevant role data
docstring_tokens: Helper function to pull relevant role data
code: def clean_role(role):
      '''
      Helper function to pull relevant role data
      '''
  
      role_dict = {
          'congress': role['congress'],
          'state': role['state'],
          'party': role['party'],
          'district': role['district'],
          'committees': [
              {'name': comm['name'], 'code': comm['code']}
              for comm in role['committees']
          ],
          'subcommittees': [
              {'name': comm['name'], 'code': comm['code'], 'parent_code': comm['parent_committee_id']}
              for comm in role['subcommittees']
          ]
      }
      
      return role_dict
code_tokens: def clean_role ( role ) : role_dict = { 'congress' : role [ 'congress' ] , 'state' : role [ 'state' ] , 'party' : role [ 'party' ] , 'district' : role [ 'district' ] , 'committees' : [ { 'name' : comm [ 'name' ] , 'code' : comm [ 'code' ] } for comm in role [ 'committees' ] ] , 'subcommittees' : [ { 'name' : comm [ 'name' ] , 'code' : comm [ 'code' ] , 'parent_code' : comm [ 'parent_committee_id' ] } for comm in role [ 'subcommittees' ] ] } return role_dict
short_docstring: Helper function to pull relevant role data
short_docstring_tokens: Helper function to pull relevant role data
comment: '''
      Helper function to pull relevant role data
      '''