code: def get_page_artid_for_publication_info(publication_info, separator):
          
          if 'artid' in publication_info:
              return publication_info['artid']
  
          elif 'page_start' in publication_info and 'page_end' in publication_info:
              page_start = publication_info['page_start']
              page_end = publication_info['page_end']
              return text_type('{}{}{}').format(
                  page_start, text_type(separator), page_end
              )
  
          return ''
docs: Return the page range or the article id of a publication_info entry.
  
          Args:
              publication_info(dict): a publication_info field entry of a record
              separator(basestring): optional page range symbol, defaults to a single dash
  
          Returns:
              string: the page range or the article id of the record.
  
          Examples:
              >>> publication_info = {'artid': '054021'}
              >>> get_page_artid(publication_info)
              '054021'