code: def set_raw_tag_data(filename, data, act=True, verbose=False):
      "Replace the ID3 tag in FILENAME with DATA."
      check_tag_data(data)
      with open(filename, "rb+") as file:
          try:
              (cls, offset, length) = stagger.tags.detect_tag(file)
          except stagger.NoTagError:
              (offset, length) = (0, 0)
          if length > 0:
              verb(verbose, "{0}: replaced tag with {1} bytes of data"
                   .format(filename, len(data)))
          else:
              verb(verbose, "{0}: created tag with {1} bytes of data"
                   .format(filename, len(data)))
          if act:
              stagger.fileutil.replace_chunk(file, offset, length, dataf set_raw_tag_data(filename, data, act=True, verbose=False):
      "Replace the ID3 tag in FILENAME with DATA."
      check_tag_data(data)
      with open(filename, "rb+") as file:
          try:
              (cls, offset, length) = stagger.tags.detect_tag(file)
          except stagger.NoTagError:
              (offset, length) = (0, 0)
          if length > 0:
              verb(verbose, "{0}: replaced tag with {1} bytes of data"
                   .format(filename, len(data)))
          else:
              verb(verbose, "{0}: created tag with {1} bytes of data"
                   .format(filename, len(data)))
          if act:
              stagger.fileutil.replace_chunk(file, offset, length, data)
docs: Replace the ID3 tag in FILENAME with DATA.