original_docstring: 
      Builds dictionary of new metadata tags based on txt file
      :param data: (string) text file containing metadata changes
      :param purge: (boolean) If true, delete the tags specified in txt file
      :return: dict containing metadata tags and their new values
      
docstring: Builds dictionary of new metadata tags based on txt file
docstring_tokens: Builds dictionary of new metadata tags based on txt file
code: def build_new_meta(data, purge):
      """
      Builds dictionary of new metadata tags based on txt file
      :param data: (string) text file containing metadata changes
      :param purge: (boolean) If true, delete the tags specified in txt file
      :return: dict containing metadata tags and their new values
      """
      newData = {}
      # open text file
      try:
          with open(data) as f:
              for line in f:
                  line = line.rstrip('\n')
                  (tag, descr) = line.split('=')
                  if purge:
                      newData[tag] = ''
                  else:
                      newData[tag] = descr
      except IOError:
          print('Input file metadata.txt not found. '+
                'Please try again.')
          sys.exit()
      return newData
code_tokens: def build_new_meta ( data , purge ) : newData = { } try : with open ( data ) as f : for line in f : line = line . rstrip ( '\n' ) ( tag , descr ) = line . split ( '=' ) if purge : newData [ tag ] = '' else : newData [ tag ] = descr except IOError : print ( 'Input file metadata.txt not found. ' + 'Please try again.' ) sys . exit ( ) return newData
short_docstring: Builds dictionary of new metadata tags based on txt file
short_docstring_tokens: Builds dictionary of new metadata tags based on txt file
comment: """
      Builds dictionary of new metadata tags based on txt file
      :param data: (string) text file containing metadata changes
      :param purge: (boolean) If true, delete the tags specified in txt file
      :return: dict containing metadata tags and their new values
      """$SEP$# open text file