<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _begins_with_one_of(sentence, parts_of_speech):
 """Return True if the sentence or fragment begins with one of the parts of speech in the list, else False"""

    doc = nlp(sentence)
    if doc[0].tag_ in parts_of_speech:
        return True
    return False