code: def _get_org(aff):
      
      try:
          org = aff['organization']
          if not isinstance(org, str):
              try:
                  org = org['$']
              except TypeError:  # Multiple names given
                  org = ', '.join([d['$'] for d in org if d])
      except KeyError:  # Author group w/o affiliation
          org = None
      return org
docs: Auxiliary function to extract org information from affiliation
      for authorgroup.