<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_specified_directive(directive: GraphQLDirective):
 """Check whether the given directive is one of the specified directives."""

    return isinstance(directive, GraphQLDirective) and any(
        specified_directive.name == directive.name
        for specified_directive in specified_directives
    )