Get a random continent name or continent code.

        :param code: Return code of continent.
        :return: Continent name.

def continent(self, code: bool = False) -> str:
        """Get a random continent name or continent code.

        :param code: Return code of continent.
        :return: Continent name.
        """
        codes = CONTINENT_CODES if \
            code else self._data['continent']

        return self.random.choice(codes)