code: def from_args(cls, target_url, default_url, test_url):
          
          return cls("You're trying to upload to the legacy PyPI site '{}'. "
                     "Uploading to those sites is deprecated. \n "
                     "The new sites are pypi.org and test.pypi.org. Try using "
                     "{} (or {}) to upload your packages instead. "
                     "These are the default URLs for Twine now. \n More at "
                     "https://packaging.python.org/guides/migrating-to-pypi-org/"
                     " .".format(target_url, default_url, test_url)
                     )
docs: Return an UploadToDeprecatedPyPIDetected instance.