human
Complete the below
def _class_matcher(target_cls):

    ''''Match a node if it\'s an instance of the given class.'
    '''

=====
Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def match(node):
        return isinstance(node, target_cls)
    return match