def METHOD_NAME (db, source, asset, quantity, tag):
    # resolve subassets
    asset = util.resolve_subasset_longname(db, asset)
    validate(db, source, None, asset, quantity)
    data = pack(db, asset, quantity, tag)
    return (source, [], data)