<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getattr_sdk(attr, name):
 """ Filter SDK attributes Args: attr(attribute):
 Attribute as returned by :func:`getattr`. name(str):
 Attribute name. Returns: `attr` if passed. """

    if inspect.isroutine(attr):
        if hasattr(attr, '_sdkmeta'):
            return attr
    raise AttributeError(name)