To attach, you need two 8mm x 3mm magnets (.315in x .118in). I'm unsure if this is applicable to other printer models because I don't know if the hole in the filament motor is the same, but it at least works with the MK3S+. Parts may also be a bit of a tight fit, but they do attach to each other. For the text that goes on top of the motor, you may have to squeeze it on the motor and it will bend the part a little, but don't be afraid to break it.
The author hasn't provided the model origin yet.