How to resolve "Magic Comment" error when installing a PyPI package with a different import name?

Posted thread to Discourse: How to resolve error while using Magic Comment for PyPI package with different import name?