<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def part_of_speech(phrase, format='json'):
 """ querrying Wordnik's API for knowing whether the word is a noun, adjective and the like :params phrase: word for which part_of_speech is to be found :param format: response structure type. Defaults to: "json" :returns: returns a json object as str, False if invalid phrase """

        # We get a list object as a return value from the Wordnik API
        base_url = Vocabulary.__get_api_link("wordnik")
        url = base_url.format(word=phrase.lower(), action="definitions")
        json_obj = Vocabulary.__return_json(url)

        if not json_obj:
            return False

        result = []
        for idx, obj in enumerate(json_obj):
            text = obj.get('partOfSpeech', None)
            example = obj.get('text', None)
            result.append({"seq": idx, "text": text, "example": example})

        return Response().respond(result, format)