<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_class_methods(cls):
 """ Return methods associated with a given class """

    return [
        node
        for node in cls.body
        if isinstance(node, ast.FunctionDef)
    ]