def register_shape(self, name, shape=None):
        if shape is None:
            # image
            if name.lower().endswith(".gif"):
                shape = Shape("image", self._image(name))
            else:
                raise TurtleGraphicsError("Bad arguments for register_shape.\n"
                                          + "Use  help(register_shape)" )
        elif isinstance(shape, tuple):
            shape = Shape("polygon", shape)
        ## else shape assumed to be Shape-instance
        self._shapes[name] = shape
Test the scenario where user tries to resend activation code
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/site-packages/turtle.py/TurtleScreen.register_shape--crossover with--dataset/ETHPy150Open macropin/django-registration/registration/tests/models.py/RegistrationModelTests.test_resend_activation_email_expired_user